dependency for command line publishing

This commit is contained in:
aardschok 2017-08-18 10:51:17 +02:00
parent 54aedca926
commit 0cd7b6f537

View file

@ -0,0 +1,14 @@
import os
import pyblish.api
class CollectCurrentShellFile(pyblish.api.ContextPlugin):
"""Inject the current working file into context"""
order = pyblish.api.CollectorOrder - 0.5
label = "Current File"
hosts = ["shell"]
def process(self, context):
"""Inject the current working file"""
context.data["currentFile"] = os.path.join(os.getcwd(), "<shell>")