Merged revisions 1582-1665 via svnmerge from
[scons.git] / test / Rpcgen / RPCGENHEADERFLAGS.py
index e8d3cb0f99ea84bc0e7352df9e0769112694b76e..411838d53906be1dbeee091566a889345a9fc12f 100644 (file)
@@ -29,7 +29,7 @@ import string
 import sys
 import TestSCons
 
-python = TestSCons.python
+_python_ = TestSCons._python_
 _exe = TestSCons._exe
 
 test = TestSCons.TestSCons()
@@ -52,14 +52,14 @@ sys.exit(0)
 """)
 
 test.write('SConstruct', """\
-env = Environment(RPCGEN = r'%s myrpcgen.py',
+env = Environment(RPCGEN = r'%(_python_)s myrpcgen.py',
                   RPCGENHEADERFLAGS = '-x',
                   tools=['default', 'rpcgen'])
 env.RPCGenHeader('rpcif')
 env.RPCGenClient('rpcif')
 env.RPCGenService('rpcif')
 env.RPCGenXDR('rpcif')
-""" % (python,))
+""" % locals())
 
 test.write('rpcif.x', """\
 RPCGEN