diff options
author | Paweł Tomulik <ptomulik@meil.pw.edu.pl> | 2018-10-13 00:22:40 (GMT) |
---|---|---|
committer | Paweł Tomulik <ptomulik@meil.pw.edu.pl> | 2018-10-22 10:18:28 (GMT) |
commit | 19b57d5bc728c391adceee5a57d4ae7fb6120d7f (patch) | |
tree | b23039c0dc15764892aee20ec8039f039ba8fa8d /test/scons-time/run/option/python.py | |
parent | e27d985c627a897e1d234f8a59e1eb91cae1ca2a (diff) | |
download | SCons-19b57d5bc728c391adceee5a57d4ae7fb6120d7f.zip SCons-19b57d5bc728c391adceee5a57d4ae7fb6120d7f.tar.gz SCons-19b57d5bc728c391adceee5a57d4ae7fb6120d7f.tar.bz2 |
Correct sheabangs in code snippets under test/
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 d0592b6..e508e11 100644 --- a/test/scons-time/run/option/python.py +++ b/test/scons-time/run/option/python.py @@ -29,6 +29,7 @@ Verify the run --python option to specify an alternatie Python executable. """ import os +import sys import TestSCons_time @@ -39,15 +40,15 @@ test.write_sample_project('foo.tar.gz') my_python_py = test.workpath('my_python.py') test.write(my_python_py, """\ -#!/usr/bin/env python +#!/usr/bin/env python%s import sys profile = '' for arg in sys.argv[1:]: if arg.startswith('--profile='): profile = arg[10:] break -sys.stdout.write('my_python.py: %s\\n' % profile) -""") +sys.stdout.write('my_python.py: %%s\\n' %% profile) +""" % sys.version_info[0]) os.chmod(my_python_py, 0o755) |