1. SCons
  2. Core
  3. SCons

Source

SCons / test / option-q.py

Diff from to

File test/option-q.py

  • Ignore whitespace
 
 test = TestSCons.TestSCons()
 
-python = TestSCons.python
+_python_ = TestSCons._python_
 
 test.write('build.py', r"""
 import sys
 """)
 
 test.write('SConstruct', """
-B = Builder(action=r'%s build.py $TARGET $SOURCES')
+B = Builder(action=r'%(_python_)s build.py $TARGET $SOURCES')
 env = Environment(BUILDERS = { 'B' : B })
 env.B(target = 'aaa.out', source = 'aaa.in')
 env.B(target = 'bbb.out', source = 'bbb.in')
-""" % python)
+""" % locals())
 
 test.write('aaa.in', "aaa.in\n")
 test.write('bbb.in', "bbb.in\n")