bug 1317: allow test.py to learn which python version was used to build ns-3
authorTom Henderson <tomh@tomh.org>
Fri, 13 Jan 2012 16:07:23 -0800
changeset 7687 9918e57b9f8d
parent 7686 012e465b9c38
child 7688 6f5c9b870e45
bug 1317: allow test.py to learn which python version was used to build ns-3
test.py
--- a/test.py	Sun Jan 15 09:21:44 2012 -0800
+++ b/test.py	Fri Jan 13 16:07:23 2012 -0800
@@ -56,6 +56,7 @@
     "APPNAME",
     "BUILD_PROFILE",
     "VERSION",
+    "PYTHON",
 ]
 
 NSC_ENABLED = False
@@ -681,7 +682,7 @@
     suppressions_path = os.path.join (base, VALGRIND_SUPPRESSIONS_FILE)
 
     if is_python:
-        path_cmd = "python " + os.path.join (base, shell_command)
+        path_cmd = PYTHON[0] + " " + os.path.join (base, shell_command)
     else:
         if len(build_path):
             path_cmd = os.path.join (build_path, shell_command)