change PYPE_STUDIO_TEMPLATES to PYPE_CONFIG

This commit is contained in:
Milan Kolar 2019-04-08 23:00:24 +02:00
parent 7e1c815607
commit 100aafa6ec
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)