diff options
| author | Steven Knight <knight@baldmt.com> | 2004-03-12 13:24:18 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2004-03-12 13:24:18 (GMT) |
| commit | 7f0857e23182eb4fba10dc65216c65dbe7ee13da (patch) | |
| tree | ce7ad48e3d0e7cd9708904c8ceedad4da4125090 /src/engine/SCons/Environment.py | |
| parent | 503c526b323d74874ee99ae5d54b30f45046ce00 (diff) | |
| download | SCons-7f0857e23182eb4fba10dc65216c65dbe7ee13da.zip SCons-7f0857e23182eb4fba10dc65216c65dbe7ee13da.tar.gz SCons-7f0857e23182eb4fba10dc65216c65dbe7ee13da.tar.bz2 | |
Add an Execute() method.
Diffstat (limited to 'src/engine/SCons/Environment.py')
| -rw-r--r-- | src/engine/SCons/Environment.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index da455bc..ca25021 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -920,6 +920,12 @@ class Base: def Environment(self, **kw): return apply(SCons.Environment.Environment, [], self.subst_kw(kw)) + def Execute(self, action, *args, **kw): + """Directly execute an action through an Environment + """ + action = apply(self.Action, (action,) + args, kw) + return action([], [], self) + def File(self, name, *args, **kw): """ """ |
