mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'develop' into feature/PYPE-654-nks-cut-reference-videos
This commit is contained in:
commit
0c5b7b7ab9
18 changed files with 112 additions and 177 deletions
|
|
@ -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'])
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue