Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
added ability to change general environments
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Apr 11, 2022
1 parent 9893903 commit aefaac6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openpype/settings/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit aefaac6

Please sign in to comment.