def SConscript(self, *ls, **kw):
ls = map(lambda l, self=self: self.subst(l), ls)
- return apply(_SConscript, [self.fs,] + ls, kw)
+ subst_kw = {}
+ for key, val in kw.items():
+ if SCons.Util.is_String(val):
+ val = self.subst(val)
+ subst_kw[key] = val
+ return apply(_SConscript, [self.fs,] + ls, subst_kw)
def SetOption(self, name, value):
name = self.subst(name)
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")
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.,