fix(global): little cleanup

- was used old label `template` were `anatomy` should be
- it was getting filled templates as object not as dictionary
This commit is contained in:
Jakub Jezek 2019-10-07 13:29:20 +02:00
parent 66bf8b5bb9
commit 0c64aeb84f
2 changed files with 3 additions and 3 deletions

View file

@ -9,11 +9,11 @@ from pypeapp import Anatomy
import pyblish.api
class CollectTemplates(pyblish.api.ContextPlugin):
class CollectAnatomy(pyblish.api.ContextPlugin):
"""Collect Anatomy into Context"""
order = pyblish.api.CollectorOrder
label = "Collect Templates"
label = "Collect Anatomy"
def process(self, context):
context.data['anatomy'] = Anatomy()

View file

@ -82,5 +82,5 @@ class CollectTemplates(pyblish.api.InstancePlugin):
# We take the parent folder of representation 'filepath'
instance.data["assumedDestination"] = os.path.dirname(
(anatomy.format(template_data)).publish.path
(anatomy.format(template_data))["publish"]["path"]
)