diff sat/tools/common/async_process.py @ 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 e584ce33ef1d
children
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,