mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
call .copy() on variable env
This commit is contained in:
parent
8181a5f8b6
commit
a4de80a61e
1 changed files with 3 additions and 5 deletions
|
|
@ -531,15 +531,13 @@ class ApplicationLaunchContext:
|
|||
self.launch_args = executable.as_args()
|
||||
|
||||
# Handle launch environemtns
|
||||
passed_env = self.data.pop("env", None)
|
||||
if passed_env is None:
|
||||
env = self.data.pop("env", None)
|
||||
if env is None:
|
||||
env = os.environ
|
||||
else:
|
||||
env = passed_env
|
||||
|
||||
# subprocess.Popen keyword arguments
|
||||
self.kwargs = {
|
||||
"env": copy.deepcopy(env)
|
||||
"env": env.copy()
|
||||
}
|
||||
|
||||
if platform.system().lower() == "windows":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue