mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
make sure it's totally independent
This commit is contained in:
parent
c1d0870a7e
commit
0b31fe7526
1 changed files with 11 additions and 1 deletions
|
|
@ -531,12 +531,22 @@ class ApplicationLaunchContext:
|
|||
|
||||
# Handle launch environemtns
|
||||
env = self.data.pop("env", None)
|
||||
if env is not None and not isinstance(env, dict):
|
||||
self.log.warning((
|
||||
"Passed `env` kwarg has invalid type: {}. Expected: `dict`."
|
||||
" Using `os.environ` instead."
|
||||
).format(str(type(env))))
|
||||
env = None
|
||||
|
||||
if env is None:
|
||||
env = os.environ
|
||||
|
||||
# subprocess.Popen keyword arguments
|
||||
self.kwargs = {
|
||||
"env": env.copy()
|
||||
"env": {
|
||||
key: str(value)
|
||||
for key, value in env.items()
|
||||
}
|
||||
}
|
||||
|
||||
if platform.system().lower() == "windows":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue