diff --git a/client/ayon_core/hosts/maya/api/plugin.py b/client/ayon_core/hosts/maya/api/plugin.py index 2a1a531012..c5e3f42d10 100644 --- a/client/ayon_core/hosts/maya/api/plugin.py +++ b/client/ayon_core/hosts/maya/api/plugin.py @@ -925,8 +925,8 @@ class ReferenceLoader(Loader): def prepare_root_value(self, file_url, project_name): """Replace root value with env var placeholder. - Use ${OPENPYPE_ROOT_WORK} (or any other root) instead of proper root - value when storing referenced url into a workfile. + Use ${AYON_PROJECT_ROOT_WORK} (or any other root) instead of proper + root value when storing referenced url into a workfile. Useful for remote workflows with SiteSync. Args: diff --git a/client/ayon_core/hosts/nuke/api/lib.py b/client/ayon_core/hosts/nuke/api/lib.py index eb85c14fdb..86496a4804 100644 --- a/client/ayon_core/hosts/nuke/api/lib.py +++ b/client/ayon_core/hosts/nuke/api/lib.py @@ -2227,7 +2227,7 @@ Reopening Nuke should synchronize these paths and resolve any discrepancies. # include all project root related env vars for env_var in os.environ: - if env_var.startswith("OPENPYPE_PROJECT_ROOT_"): + if env_var.startswith("AYON_PROJECT_ROOT_"): included_vars.append(env_var) # use regex to find env var in template with format {ENV_VAR} diff --git a/client/ayon_core/pipeline/anatomy.py b/client/ayon_core/pipeline/anatomy.py index 777158edd1..86b7d92309 100644 --- a/client/ayon_core/pipeline/anatomy.py +++ b/client/ayon_core/pipeline/anatomy.py @@ -125,7 +125,7 @@ class BaseAnatomy(object): return self._roots_obj def root_environments(self): - """Return OPENPYPE_ROOT_* environments for current project in dict.""" + """Return AYON_PROJECT_ROOT_* environments for current project.""" return self._roots_obj.root_environments() def root_environmets_fill_data(self, template=None): @@ -150,7 +150,7 @@ class BaseAnatomy(object): return self.roots_obj.all_root_paths() def set_root_environments(self): - """Set OPENPYPE_ROOT_* environments for current project.""" + """Set AYON_PROJECT_ROOT_* environments for current project.""" self._roots_obj.set_root_environments() def root_names(self): @@ -289,7 +289,7 @@ class BaseAnatomy(object): "<{}>" ## Output - "/project/asset/task/animation_v001.ma" + "/project/asset/task/animation_v001.ma" Args: filepath (str): Full file path where root should be replaced. @@ -1206,7 +1206,7 @@ class Roots: anatomy Anatomy: Anatomy object created for a specific project. """ - env_prefix = "OPENPYPE_PROJECT_ROOT" + env_prefix = "AYON_PROJECT_ROOT" roots_filename = "roots.json" def __init__(self, anatomy): @@ -1312,8 +1312,8 @@ class Roots: def root_environments(self): """Use root keys to create unique keys for environment variables. - Concatenates prefix "OPENPYPE_ROOT" with root keys to create unique - keys. + Concatenates prefix "AYON_PROJECT_ROOT_" with root keys to create + unique keys. Returns: dict: Result is `{(str): (str)}` dicitonary where key represents @@ -1335,14 +1335,10 @@ class Roots: Result on windows platform:: { - "OPENPYPE_ROOT_WORK": "P:/projects/work", - "OPENPYPE_ROOT_PUBLISH": "P:/projects/publish" + "AYON_PROJECT_ROOT_WORK": "P:/projects/work", + "AYON_PROJECT_ROOT_PUBLISH": "P:/projects/publish" } - Short example when multiroot is not used:: - { - "OPENPYPE_ROOT": "P:/projects" - } """ return self._root_environments()