Parcourir la 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 il y a 4 ans
Parent
commit
153d1bd4a9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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("/"):