diff options
Diffstat (limited to 'test/scons-time/run/option/python.py')
-rw-r--r-- | test/scons-time/run/option/python.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/scons-time/run/option/python.py b/test/scons-time/run/option/python.py index e508e11..27ca072 100644 --- a/test/scons-time/run/option/python.py +++ b/test/scons-time/run/option/python.py @@ -29,10 +29,11 @@ Verify the run --python option to specify an alternatie Python executable. """ import os -import sys import TestSCons_time +_python_ = TestSCons_time._python_ + test = TestSCons_time.TestSCons_time() test.write_sample_project('foo.tar.gz') @@ -40,7 +41,7 @@ test.write_sample_project('foo.tar.gz') my_python_py = test.workpath('my_python.py') test.write(my_python_py, """\ -#!/usr/bin/env python%s +#!%(_python_)s import sys profile = '' for arg in sys.argv[1:]: @@ -48,7 +49,7 @@ for arg in sys.argv[1:]: profile = arg[10:] break sys.stdout.write('my_python.py: %%s\\n' %% profile) -""" % sys.version_info[0]) +""" % locals()) os.chmod(my_python_py, 0o755) |