mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
anatomy can have defined site_name on creation
This commit is contained in:
parent
c370d5f340
commit
ed321845cf
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ class Anatomy:
|
|||
root_key_regex = re.compile(r"{(root?[^}]+)}")
|
||||
root_name_regex = re.compile(r"root\[([^]]+)\]")
|
||||
|
||||
def __init__(self, project_name=None):
|
||||
def __init__(self, project_name=None, site_name=None):
|
||||
if not project_name:
|
||||
project_name = os.environ.get("AVALON_PROJECT")
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ class Anatomy:
|
|||
|
||||
self.project_name = project_name
|
||||
|
||||
self._data = get_anatomy_settings(project_name)
|
||||
self._data = get_anatomy_settings(project_name, site_name)
|
||||
|
||||
self._templates_obj = Templates(self)
|
||||
self._roots_obj = Roots(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue