Merge branch 'develop' into feature/PYPE-654-nks-cut-reference-videos

This commit is contained in:
Jakub Jezek 2020-05-15 12:05:11 +02:00
commit 0c5b7b7ab9
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3
18 changed files with 112 additions and 177 deletions

View file

@ -1,15 +0,0 @@
import pyblish.api
import avalon.api as avalon
import os
class CollectActiveProjectRoot(pyblish.api.ContextPlugin):
"""Inject the active project into context"""
label = "Collect Project Root"
order = pyblish.api.CollectorOrder - 0.1
def process(self, context):
S = avalon.Session
context.data["projectroot"] = os.path.normpath(
os.path.join(S['AVALON_PROJECTS'], S['AVALON_PROJECT'])
)