From 153d1bd4a99659b8b951972ac56909ec3b832980 Mon Sep 17 00:00:00 2001 From: waifu Date: Mar 27 2020 19:11:36 +0000 Subject: Update runworker.py Keep environment variables, otherwise the child subprocess `subprocess.Popen(cmd, env=env or None)` will not have the same environment as the parent. --- diff --git a/runworker.py b/runworker.py index 4fdddf0..80a61b6 100755 --- a/runworker.py +++ b/runworker.py @@ -32,7 +32,7 @@ parser.add_argument( args = parser.parse_args() -env = {} +env = os.environ if args.config: config = args.config if not config.startswith("/"):