pass environments to set into the json instead of changing them for the subprocess

This commit is contained in:
iLLiCiTiT 2021-12-16 14:57:02 +01:00
parent 5fc7307be6
commit dd99682df3

View file

@ -938,8 +938,10 @@ class ApplicationLaunchContext:
# Prepare data that will be passed to midprocess
# - store arguments to a json and pass path to json as last argument
# - pass environments to set
json_data = {
"args": self.launch_args
"args": self.launch_args,
"env": self.kwargs.pop("env", {})
}
# Create temp file
json_temp = tempfile.NamedTemporaryFile(