diff options
author | Paweł Tomulik <ptomulik@meil.pw.edu.pl> | 2018-10-22 19:26:30 (GMT) |
---|---|---|
committer | Paweł Tomulik <ptomulik@meil.pw.edu.pl> | 2018-10-22 19:26:30 (GMT) |
commit | 76ff51ee816e39f98ee26393ac530e9d44a8c9bd (patch) | |
tree | 63dcacc37a07a9d6ef37cb47370ec1a50034a639 /test/Scanner | |
parent | acd60358a5f20a6d82dab42c00ad16a5e07e6428 (diff) | |
download | SCons-76ff51ee816e39f98ee26393ac530e9d44a8c9bd.zip SCons-76ff51ee816e39f98ee26393ac530e9d44a8c9bd.tar.gz SCons-76ff51ee816e39f98ee26393ac530e9d44a8c9bd.tar.bz2 |
use absolute python path in sheabangs
Diffstat (limited to 'test/Scanner')
-rw-r--r-- | test/Scanner/generated.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Scanner/generated.py b/test/Scanner/generated.py index 8c995be..3e08549 100644 --- a/test/Scanner/generated.py +++ b/test/Scanner/generated.py @@ -34,9 +34,10 @@ factors triggered the bug Scott saw, and partly because the real-world complexity is valuable in its own right. """ -import sys import TestSCons +_python_ = TestSCons._python_ + test = TestSCons.TestSCons() test.subdir('reftree', @@ -283,7 +284,7 @@ recurse_env.Command([lib_fullname] + lib_objs, """) test.write(['src', 'lib_geng', 'MAKE-HEADER.py'], """\ -#!/usr/bin/env python%s +#!%(_python_)s import os import os.path @@ -294,7 +295,7 @@ os.chdir(os.path.split(sys.argv[0])[0]) for h in ['libg_gx.h', 'libg_gy.h', 'libg_gz.h']: open(h, 'w').write('') -""" % sys.version_info[0]) +""" % locals()) test.write(['src', 'lib_geng', 'SConstruct'], """\ import os |