mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix anatomy
This commit is contained in:
parent
0e39b2fee1
commit
e08b026e9d
2 changed files with 5 additions and 5 deletions
|
|
@ -171,7 +171,7 @@ class AppAction(BaseHandler):
|
||||||
os.environ["AVALON_APP"] = self.identifier.split("_")[0]
|
os.environ["AVALON_APP"] = self.identifier.split("_")[0]
|
||||||
os.environ["AVALON_APP_NAME"] = self.identifier
|
os.environ["AVALON_APP_NAME"] = self.identifier
|
||||||
|
|
||||||
anatomy = Anatomy(project_name=project_name)
|
anatomy = Anatomy()
|
||||||
|
|
||||||
hierarchy = ""
|
hierarchy = ""
|
||||||
parents = database[project_name].find_one({
|
parents = database[project_name].find_one({
|
||||||
|
|
|
||||||
|
|
@ -430,11 +430,11 @@ def get_avalon_project_template():
|
||||||
Returns:
|
Returns:
|
||||||
dictionary with templates
|
dictionary with templates
|
||||||
"""
|
"""
|
||||||
anatomy = Anatomy(project_name=os.environ.get('AVALON_PROJECT')).anatomy
|
templates = Anatomy().templates
|
||||||
proj_template = {}
|
proj_template = {}
|
||||||
proj_template['workfile'] = anatomy["avalon"]["workfile"]
|
proj_template['workfile'] = templates["avalon"]["workfile"]
|
||||||
proj_template['work'] = anatomy["avalon"]["work"]
|
proj_template['work'] = templates["avalon"]["work"]
|
||||||
proj_template['publish'] = anatomy["avalon"]["publish"]
|
proj_template['publish'] = templates["avalon"]["publish"]
|
||||||
return proj_template
|
return proj_template
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue