diff options
Diffstat (limited to 'test/scons-time/run/config/python.py')
-rw-r--r-- | test/scons-time/run/config/python.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/scons-time/run/config/python.py b/test/scons-time/run/config/python.py index 92d1600..c8842c1 100644 --- a/test/scons-time/run/config/python.py +++ b/test/scons-time/run/config/python.py @@ -29,10 +29,11 @@ Verify specifying an alternate Python executable in a config file. """ import os -import sys import TestSCons_time +_python_ = TestSCons_time._python_ + test = TestSCons_time.TestSCons_time() test.write_sample_project('foo.tar.gz') @@ -44,7 +45,7 @@ python = r'%(my_python_py)s' """ % locals()) test.write(my_python_py, """\ -#!/usr/bin/env python%s +#!%(_python_)s from __future__ import print_function import sys profile = '' @@ -53,7 +54,7 @@ for arg in sys.argv[1:]: profile = arg[10:] break print('my_python.py: %%s' %% profile) -""" % sys.version_info[0]) +""" % locals()) os.chmod(my_python_py, 0o755) |