From 8823074fc0bbd10f8e20cfc1bf41ad3eab3dec6b Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Wed, 28 Jul 2010 00:58:44 +0000 Subject: Print the path to the SCons package in use in scons --version --- src/CHANGES.txt | 4 ++++ src/engine/SCons/Script/Main.py | 5 +++++ 2 files changed, 9 insertions(+) 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) -- cgit v0.12