summaryrefslogtreecommitdiffstats
path: root/test/M4.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/M4.py')
-rw-r--r--test/M4.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/M4.py b/test/M4.py
index cc35540..bf56e74 100644
--- a/test/M4.py
+++ b/test/M4.py
@@ -78,12 +78,12 @@ os.system(string.join(sys.argv[1:], " "))
""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
test.write('SConstruct', """
-foo = Environment(M4FLAGS='-DFFF=fff')
+foo = Environment(M4=r'%(m4)s', M4FLAGS='-DFFF=fff')
m4 = foo.Dictionary('M4')
-bar = Environment(M4 = r'%s wrapper.py ' + m4, M4FLAGS='-DBBB=bbb')
+bar = Environment(M4 = r'%(python)s wrapper.py ' + m4, M4FLAGS='-DBBB=bbb')
foo.M4(target = 'foo.x', source = 'foo.x.m4')
bar.M4(target = 'bar', source = 'bar.m4')
-""" % python)
+""" % locals())
test.write('foo.x.m4', "line 1\n"
"FFF\n"