Browse Source

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.
waifu 4 years ago
parent
commit
153d1bd4a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      runworker.py

+ 1 - 1
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("/"):