diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
commit | a925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch) | |
tree | 292853eb221ebe82c9e9b47c03c74b78a155add0 /test/subdir.py | |
parent | dbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff) | |
download | SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2 |
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/subdir.py')
-rw-r--r-- | test/subdir.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/subdir.py b/test/subdir.py index e155a67..03cbed3 100644 --- a/test/subdir.py +++ b/test/subdir.py @@ -27,6 +27,8 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import TestSCons import os.path +python = TestSCons.python + test = TestSCons.TestSCons() test.subdir('subdir') @@ -40,13 +42,13 @@ file.close() """) test.write('SConstruct', """ -B = Builder(action = "python build.py $TARGETS $SOURCES") +B = Builder(action = "%s build.py $TARGETS $SOURCES") env = Environment(BUILDERS = { 'B' : B }) env.B(target = 'subdir/f1.out', source = 'subdir/f1.in') env.B(target = 'subdir/f2.out', source = 'subdir/f2.in') env.B(target = 'subdir/f3.out', source = 'subdir/f3.in') env.B(target = 'subdir/f4.out', source = 'subdir/f4.in') -""") +""" % python) test.write(['subdir', 'f1.in'], "f1.in\n") test.write(['subdir', 'f2.in'], "f2.in\n") |