--- a/util/ProcessLogger.py Mon Feb 06 20:07:51 2023 +0800
+++ b/util/ProcessLogger.py Fri Feb 10 10:02:21 2023 +0800
@@ -78,7 +78,7 @@
no_stdout=False, no_stderr=False, no_gui=True,
timeout=None, outlimit=None, errlimit=None,
endlog=None, keyword=None, kill_it=False, cwd=None,
- encoding=None, output_encoding=None):
+ encoding=None, output_encoding=None, env=None):
self.logger = logger
if not isinstance(Command, list):
self.Command_str = Command
@@ -122,7 +122,8 @@
"cwd": os.getcwd() if cwd is None else cwd,
"stdin": subprocess.PIPE,
"stdout": subprocess.PIPE,
- "stderr": subprocess.PIPE
+ "stderr": subprocess.PIPE,
+ "env": env
}
if no_gui and os.name in ("nt", "ce"):