From 1c727612f64d2eeaec67a36622a7732c4cc8a90a Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 25 Feb 2021 15:01:09 +0100 Subject: [PATCH] active site is also used from sync server when roots are filled --- pype/settings/lib.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pype/settings/lib.py b/pype/settings/lib.py index ad1292b326..feeeaf3813 100644 --- a/pype/settings/lib.py +++ b/pype/settings/lib.py @@ -408,6 +408,17 @@ def apply_local_settings_on_anatomy_settings( if not active_site: active_site = default_locals.get("active_site") + if not active_site: + project_settings = get_project_settings(project_name) + active_site = ( + project_settings + ["global"] + ["sync_server"] + ["config"] + ["active_site"] + ) + + # QUESTION should raise an exception? if not active_site: return