- Fix calling Configure() from more than one subsidiary SConscript file.
+ - Fix the env.Action() method so it returns the correct type of
+ Action for its argument(s).
+
From Vincent Risi:
- Add support for the bcc32, ilink32 and tlib Borland tools.
#######################################################################
def Action(self, *args, **kw):
- nargs = self.subst_list(args)
+ nargs = self.subst(args)
nkw = self.subst_kw(kw)
return apply(SCons.Action.Action, nargs, nkw)
def test_Action(self):
"""Test the Action() method"""
+ import SCons.Action
+
env = Environment(FOO = 'xyzzy')
a = env.Action('foo')
assert a, a
+ assert a.__class__ is SCons.Action.CommandAction, a
a = env.Action('$FOO')
assert a, a
+ assert a.__class__ is SCons.Action.CommandGeneratorAction, a
a = env.Action(['$FOO', 'foo'])
assert a, a
+ assert a.__class__ is SCons.Action.ListAction, a
def func(arg):
pass
a = env.Action(func)
assert a, a
+ assert a.__class__ is SCons.Action.FunctionAction, a
def test_AddPostAction(self):
"""Test the AddPostAction() method"""