summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2010-07-28 00:58:44 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2010-07-28 00:58:44 (GMT)
commit8823074fc0bbd10f8e20cfc1bf41ad3eab3dec6b (patch)
tree179b23e337a8909f90953f1597e2fcb0465840cd
parent83fd0fd26c8e15ce76b95366fe4e52948bfb2cc6 (diff)
downloadSCons-8823074fc0bbd10f8e20cfc1bf41ad3eab3dec6b.zip
SCons-8823074fc0bbd10f8e20cfc1bf41ad3eab3dec6b.tar.gz
SCons-8823074fc0bbd10f8e20cfc1bf41ad3eab3dec6b.tar.bz2
Print the path to the SCons package in use in scons --version
-rw-r--r--src/CHANGES.txt4
-rw-r--r--src/engine/SCons/Script/Main.py5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index a6e8848..cab5b88 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -7,6 +7,10 @@
RELEASE 2.1.0.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE
+ From Gary Oberbrunner:
+
+ - Print the path to the SCons package in scons --version
+
From Jean-François Colson:
- Improve Microsoft Visual Studio Solution generation, and fix
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py
index b4ebb09..e0600bd 100644
--- a/src/engine/SCons/Script/Main.py
+++ b/src/engine/SCons/Script/Main.py
@@ -801,6 +801,10 @@ def version_string(label, module):
module.__developer__,
module.__buildsys__)
+def path_string(label, module):
+ path = module.__path__
+ return "\t%s path: %s\n"%(label,path)
+
def _main(parser):
global exit_status
global this_build_status
@@ -1320,6 +1324,7 @@ def main():
# __main__.__version__, hence there is no script version.
pass
parts.append(version_string("engine", SCons))
+ parts.append(path_string("engine", SCons))
parts.append("__COPYRIGHT__")
version = ''.join(parts)