summaryrefslogtreecommitdiffstats
path: root/test/AR/ARCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/AR/ARCOM.py')
-rw-r--r--test/AR/ARCOM.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/AR/ARCOM.py b/test/AR/ARCOM.py
index c8ac1d8..73c36fc 100644
--- a/test/AR/ARCOM.py
+++ b/test/AR/ARCOM.py
@@ -30,7 +30,7 @@ Test the ability to configure the $ARCOM construction variable.
import TestSCons
-python = TestSCons.python
+_python_ = TestSCons._python_
test = TestSCons.TestSCons()
@@ -51,12 +51,12 @@ test.write('myranlib.py', """
test.write('SConstruct', """
env = Environment(tools=['default', 'ar'],
- ARCOM = r'%s myar.py $TARGET $SOURCES',
- RANLIBCOM = r'%s myranlib.py $TARGET',
+ ARCOM = r'%(_python_)s myar.py $TARGET $SOURCES',
+ RANLIBCOM = r'%(_python_)s myranlib.py $TARGET',
LIBPREFIX = '',
LIBSUFFIX = '.lib')
env.Library(target = 'output', source = ['file.1', 'file.2'])
-""" % (python, python))
+""" % locals())
test.write('file.1', "file.1\n/*ar*/\n")
test.write('file.2', "file.2\n/*ar*/\n")