diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-08 04:01:32 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-08 04:01:32 (GMT) |
commit | 68b5dfbc87552d4cd1a9c067f6ba4523d9560bb9 (patch) | |
tree | 910dcf1998d6b72aa8eb4bdb5497177d331ea900 /test/FindFile.py | |
parent | 61d018dfceac6cb9717caeeea7125d7a55b4b0eb (diff) | |
download | SCons-68b5dfbc87552d4cd1a9c067f6ba4523d9560bb9.zip SCons-68b5dfbc87552d4cd1a9c067f6ba4523d9560bb9.tar.gz SCons-68b5dfbc87552d4cd1a9c067f6ba4523d9560bb9.tar.bz2 |
Give the global functions corresponding Environment methods.
Diffstat (limited to 'test/FindFile.py')
-rw-r--r-- | test/FindFile.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/FindFile.py b/test/FindFile.py index 9c837b5..8f6cb1a 100644 --- a/test/FindFile.py +++ b/test/FindFile.py @@ -38,13 +38,14 @@ test.write(['bar', 'testfile1'], 'test 3\n') test.write(['bar', 'baz', 'testfile2'], 'test 4\n') test.write('SConstruct', """ +env = Environment(FILE = 'file', BAR = 'bar') file1 = FindFile('testfile1', [ 'foo', '.', 'bar', 'bar/baz' ]) print open(str(file1), 'r').read() -file2 = FindFile('testfile1', [ 'bar', 'foo', '.', 'bar/baz' ]) +file2 = env.FindFile('test${FILE}1', [ 'bar', 'foo', '.', 'bar/baz' ]) print open(str(file2), 'r').read() file3 = FindFile('testfile2', [ 'foo', '.', 'bar', 'bar/baz' ]) print open(str(file3), 'r').read() -file4 = FindFile('testfile2', [ 'bar/baz', 'foo', '.', 'bar' ]) +file4 = env.FindFile('testfile2', [ '$BAR/baz', 'foo', '.', 'bar' ]) print open(str(file4), 'r').read() """) |