tools (common/async_process): use parent environment by default
This commit is contained in:
parent
97f6d1010a
commit
9eecdc184c
1 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ class CommandProtocol(protocol.ProcessProtocol):
|
|||
else:
|
||||
command = cls.command
|
||||
cmd_args = [command] + args
|
||||
if "env" not in kwargs:
|
||||
# we pass parent environment by default
|
||||
kwargs["env"] = None
|
||||
reactor.spawnProcess(prot,
|
||||
command,
|
||||
cmd_args,
|
||||
|
|
|
|||
Loading…
Reference in a new issue