changeset 3712:799d4f6fa7ca

tools (common/async_process): use parent environment by default
author Goffi <goffi@goffi.org>
date Tue, 30 Nov 2021 17:28:42 +0100
parents 358a678e5bdf
children f97be63871e4
files sat/tools/common/async_process.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/common/async_process.py	Tue Nov 30 17:28:03 2021 +0100
+++ b/sat/tools/common/async_process.py	Tue Nov 30 17:28:42 2021 +0100
@@ -131,6 +131,9 @@
         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,