tools (common/async_process): use parent environment by default

This commit is contained in:
Goffi 2021-11-30 17:28:42 +01:00
commit 9eecdc184c

View file

@ -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,