'project_environments' are loaded correctly

This commit is contained in:
Jakub Trllo 2024-02-15 18:58:39 +01:00
parent 8331c90fcf
commit c8ec6ad2b8
2 changed files with 1 additions and 8 deletions

View file

@ -1658,6 +1658,7 @@ def apply_project_environments_value(
env_value = project_settings["global"]["project_environments"]
if env_value:
env_value = json.loads(env_value)
parsed_value = parse_environments(env_value, env_group)
env.update(acre.compute(
_merge_env(parsed_value, env),

View file

@ -406,14 +406,6 @@ def _convert_global_project_settings(ayon_settings, output, default_settings):
# Publish conversion
ayon_publish = ayon_core["publish"]
# Project root settings - json string to dict
ayon_core["project_environments"] = json.loads(
ayon_core["project_environments"]
)
ayon_core["project_folder_structure"] = json.dumps(json.loads(
ayon_core["project_folder_structure"]
))
# Tools settings
ayon_core["sync_server"] = (
default_settings["global"]["sync_server"]