mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +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()
|
self.launch_args = executable.as_args()
|
||||||
|
|
||||||
# Handle launch environemtns
|
# Handle launch environemtns
|
||||||
passed_env = self.data.pop("env", None)
|
env = self.data.pop("env", None)
|
||||||
if passed_env is None:
|
if env is None:
|
||||||
env = os.environ
|
env = os.environ
|
||||||
else:
|
|
||||||
env = passed_env
|
|
||||||
|
|
||||||
# subprocess.Popen keyword arguments
|
# subprocess.Popen keyword arguments
|
||||||
self.kwargs = {
|
self.kwargs = {
|
||||||
"env": copy.deepcopy(env)
|
"env": env.copy()
|
||||||
}
|
}
|
||||||
|
|
||||||
if platform.system().lower() == "windows":
|
if platform.system().lower() == "windows":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue