From 100aafa6ec34b9a1b1fffd03db5f8dfecbad03ba Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Mon, 8 Apr 2019 23:00:24 +0200 Subject: [PATCH] change PYPE_STUDIO_TEMPLATES to PYPE_CONFIG --- pype/lib.py | 2 +- pype/plugins/aport/publish/collect_context.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pype/lib.py b/pype/lib.py index 43461582db..48f14fe6c4 100644 --- a/pype/lib.py +++ b/pype/lib.py @@ -467,7 +467,7 @@ def get_all_avalon_projects(): def get_presets_path(): - templates = os.environ['PYPE_STUDIO_TEMPLATES'] + templates = os.environ['PYPE_CONFIG'] path_items = [templates, 'presets'] filepath = os.path.sep.join(path_items) return filepath diff --git a/pype/plugins/aport/publish/collect_context.py b/pype/plugins/aport/publish/collect_context.py index 4e27cefd09..f43e78120c 100644 --- a/pype/plugins/aport/publish/collect_context.py +++ b/pype/plugins/aport/publish/collect_context.py @@ -63,8 +63,8 @@ class CollectContextDataFromAport(pyblish.api.ContextPlugin): pyblish.api.register_host(host) # get path to studio templates - templates_dir = os.getenv("PYPE_STUDIO_TEMPLATES", None) - assert templates_dir, "Missing `PYPE_STUDIO_TEMPLATES` in os.environ" + templates_dir = os.getenv("PYPE_CONFIG", None) + assert templates_dir, "Missing `PYPE_CONFIG` in os.environ" # get presets for host presets_dir = os.path.join(templates_dir, "presets", host)