diff options
Diffstat (limited to 'src/engine/SCons/Environment.py')
| -rw-r--r-- | src/engine/SCons/Environment.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index 1a4f5f5..f416bb0 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -534,13 +534,9 @@ class SubstitutionEnvironment: # if the command is a list, assume it's been quoted # othewise force a shell if not SCons.Util.is_List(command): kw['shell'] = True - # a SubstutionEnvironment has no ENV, so only add it - # to the args if it exists - e = self._dict.get('ENV') - if e: kw['env'] = e # run constructed command - #FUTURE p = subprocess.Popen(command, **kw) - p = apply(subprocess.Popen, (command,), kw) + #FUTURE p = Scons.Action._subproc(env, command, **kw) + p = apply(Scons.Action._subproc, (env, command), kw) out = p.stdout.read() p.stdout.close() err = p.stderr.read() |
