diff options
author | Steven Knight <knight@baldmt.com> | 2005-03-24 04:17:25 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-03-24 04:17:25 (GMT) |
commit | f93cc22229166ffa87e069f9e082cf05b82c55f6 (patch) | |
tree | 8600c78d8c912807578f3315af123cad76787e99 /test | |
parent | e37e6ed273173fddca32e9eada7925d909ed1e85 (diff) | |
download | SCons-f93cc22229166ffa87e069f9e082cf05b82c55f6.zip SCons-f93cc22229166ffa87e069f9e082cf05b82c55f6.tar.gz SCons-f93cc22229166ffa87e069f9e082cf05b82c55f6.tar.bz2 |
Allow toolpath to be stored in the environment and re-used for Copy() and Tool() calls. (Chad Austin)
Diffstat (limited to 'test')
-rw-r--r-- | test/toolpath.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/toolpath.py b/test/toolpath.py index 797f345..55b70fd 100644 --- a/test/toolpath.py +++ b/test/toolpath.py @@ -87,6 +87,10 @@ env0.Tool('SCCS', toolpath=['$TOOLPATH']) print "env0['SCCS'] =", env0.get('SCCS') print "env0['TOOL_SCCS1'] =", env0.get('TOOL_SCCS1') print "env0['TOOL_SCCS2'] =", env0.get('TOOL_SCCS2') + +base = Environment(tools=[], toolpath=['tools']) +derived = base.Copy(tools=['bar']) +print "derived['TOOL_BAR'] =", derived.get('TOOL_BAR') """) test.write('SCCS.py', r"""\ @@ -148,6 +152,7 @@ env9['TOOL_SCCS2'] = 1 env0['SCCS'] = None env0['TOOL_SCCS1'] = None env0['TOOL_SCCS2'] = 1 +derived['TOOL_BAR'] = 1 scons: done reading SConscript files. scons: Building targets ... scons: `.' is up to date. |