summaryrefslogtreecommitdiffstats
path: root/test/SWIG/build-dir.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/SWIG/build-dir.py')
-rw-r--r--test/SWIG/build-dir.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SWIG/build-dir.py b/test/SWIG/build-dir.py
index 946c65c..bc105a5 100644
--- a/test/SWIG/build-dir.py
+++ b/test/SWIG/build-dir.py
@@ -139,9 +139,10 @@ public:
};
""")
+## _python_ = TestSCons._python_
## XXX: @ptomulik: looks like it was unused?
## test.write(['source', 'test.py'], """\
-## #!/usr/bin/env python%s
+## #!%(_python_)s
## from __future__ import print_function
##
## import linalg
@@ -158,7 +159,7 @@ public:
## for i, v in enumerate(x):
## print("\tx[%%d] = %%g" %% (i, v))
##
-## """ % sys.version_info[0])
+## """ % locals())
test.run(arguments = '.')