mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
change PYPE_STUDIO_TEMPLATES to PYPE_CONFIG
This commit is contained in:
parent
7e1c815607
commit
100aafa6ec
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue