From 9eecdc184c88e28362308f2226056f2f90f9dea6 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 30 Nov 2021 17:28:42 +0100 Subject: [PATCH] tools (common/async_process): use parent environment by default --- sat/tools/common/async_process.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sat/tools/common/async_process.py b/sat/tools/common/async_process.py index 9b29070c..ad69a461 100644 --- a/sat/tools/common/async_process.py +++ b/sat/tools/common/async_process.py @@ -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,