summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-06-18 01:26:24 (GMT)
committerSteven Knight <knight@baldmt.com>2002-06-18 01:26:24 (GMT)
commit81953156f0c5075d21b9d1573ead1f2e482482a6 (patch)
treed07009f3e280d8d169e35abd702e720bb4e3a869 /src/script
parent77d43537975b406379979d599894971bf4a225f2 (diff)
downloadSCons-81953156f0c5075d21b9d1573ead1f2e482482a6.zip
SCons-81953156f0c5075d21b9d1573ead1f2e482482a6.tar.gz
SCons-81953156f0c5075d21b9d1573ead1f2e482482a6.tar.bz2
Supply more specific version info, including build date.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/script/scons.py b/src/script/scons.py
index 8e64d1d..b42ed42 100644
--- a/src/script/scons.py
+++ b/src/script/scons.py
@@ -26,6 +26,16 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+__version__ = "__VERSION__"
+
+__build__ = "__BUILD__"
+
+__buildsys__ = "__BUILDSYS__"
+
+__date__ = "__DATE__"
+
+__developer__ = "__DEVELOPER__"
+
import sys
import os.path
import os
@@ -47,7 +57,7 @@ if os.environ.has_key("SCONS_LIB_DIR"):
libs.append(os.environ["SCONS_LIB_DIR"])
if sys.platform == 'win32':
- libs.extend([ os.path.join(sys.prefix, 'SCons-__VERSION__'),
+ libs.extend([ os.path.join(sys.prefix, 'SCons-%s' % __version__),
os.path.join(sys.prefix, 'SCons') ])
else:
prefs = []
@@ -76,7 +86,7 @@ else:
else:
prefs.append(sys.prefix)
- libs.extend(map(lambda x: os.path.join(x, 'lib', 'scons-__VERSION__'), prefs))
+ libs.extend(map(lambda x: os.path.join(x, 'lib', 'scons-%s' % __version__), prefs))
libs.extend(map(lambda x: os.path.join(x, 'lib', 'scons'), prefs))
sys.path = libs + sys.path[1:]