diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-25 05:18:23 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-25 05:18:23 (GMT) |
commit | 41a3eeec87272670f593f46ab8558d0ab99046f5 (patch) | |
tree | 99bf886e89cd998dd6a32bdeb6894f15243122ce /test/Environment.py | |
parent | fd20ba3535a82bc7a6749d0020b344f4957ebc5d (diff) | |
download | SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.zip SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.tar.gz SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.tar.bz2 |
Add more environment methods for global functions: Action(), Builder(), Environment(), Literal(), Platform(), Split(), Tool(). Deprecate ParseConfig() in favor of an environment method.
Diffstat (limited to 'test/Environment.py')
-rw-r--r-- | test/Environment.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Environment.py b/test/Environment.py index 4d4d34f..b315c40 100644 --- a/test/Environment.py +++ b/test/Environment.py @@ -33,11 +33,17 @@ test = TestSCons.TestSCons() test.write('SConstruct', """ env=Environment(BAR='#bar.in', BLAT='subdir/../blat blat') -target = env.Command('foo.out', 'foo.in', r'%s build.py $SOURCE $TARGET ${File(BAR)} ${Dir(BLAT)}') +target = env.Command('foo.out', + 'foo.in', + r'%s build.py $SOURCE $TARGET ${File(BAR)} ${Dir(BLAT)}') assert target == Dir('.').File('foo.out') assert Dir('.') == Dir('.').Dir('.') assert target == target.File('foo.out') + +e2 = env.Environment(XXX='$BAR', YYY='$BLAT') +print e2['XXX'] +print e2['YYY'] """%python) test.write('build.py', """ |