mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added ability to change general environments
This commit is contained in:
parent
9893903a57
commit
aefaac6e5c
1 changed files with 8 additions and 0 deletions
|
|
@ -1113,6 +1113,14 @@ def get_general_environments():
|
|||
|
||||
clear_metadata_from_settings(environments)
|
||||
|
||||
whitelist_envs = result["general"].get("local_env_white_list")
|
||||
if whitelist_envs:
|
||||
local_settings = get_local_settings()
|
||||
local_envs = local_settings.get("environments") or {}
|
||||
for key, value in local_envs.items():
|
||||
if key in whitelist_envs and key in environments:
|
||||
environments[key] = value
|
||||
|
||||
return environments
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue