summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-18 07:44:41 (GMT)
committerSteven Knight <knight@baldmt.com>2003-09-18 07:44:41 (GMT)
commit1379d2829c9d41fb72675f0d64a291a3f5706d16 (patch)
tree61b4a238da260fecf696b3743d932423ed313151 /test
parent727266233825f379a02fc3a32c1fa46d1ffb1fe8 (diff)
downloadSCons-1379d2829c9d41fb72675f0d64a291a3f5706d16.zip
SCons-1379d2829c9d41fb72675f0d64a291a3f5706d16.tar.gz
SCons-1379d2829c9d41fb72675f0d64a291a3f5706d16.tar.bz2
Expand construction variables on the values of SConscript() keyword arguments.
Diffstat (limited to 'test')
-rw-r--r--test/SConscript-build_dir.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SConscript-build_dir.py b/test/SConscript-build_dir.py
index 0ae3583..91352e1 100644
--- a/test/SConscript-build_dir.py
+++ b/test/SConscript-build_dir.py
@@ -65,7 +65,8 @@ def cat(env, source, target):
f.write(open(src, "rb").read())
f.close()
-env = Environment(BUILDERS={'Cat':Builder(action=cat)})
+env = Environment(BUILDERS={'Cat':Builder(action=cat)},
+ BUILD='build')
Export("env")
@@ -84,7 +85,7 @@ SConscript('src/SConscript', build_dir='build/var3', duplicate=0)
SConscript('src/SConscript', build_dir=var6)
SConscript('src/SConscript', build_dir=var7, src_dir=src, duplicate=0)
-SConscript('src/SConscript', build_dir='../build/var8', duplicate=0)
+env.SConscript('src/SConscript', build_dir='../$BUILD/var8', duplicate=0)
# This tests the fact that if you specify a src_dir that is above
# the dir a SConscript is in, that we do the intuitive thing, i.e.,