From f4df58986c195133b9e2d6cf77da78fc247a1579 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 18 Mar 2020 17:39:36 +0100 Subject: [PATCH] pype init sets root by current project --- pype/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pype/__init__.py b/pype/__init__.py index 5cd9832558..34d2d90649 100644 --- a/pype/__init__.py +++ b/pype/__init__.py @@ -3,7 +3,7 @@ import os from pyblish import api as pyblish from avalon import api as avalon from .lib import filter_pyblish_plugins -from pypeapp import config +from pypeapp import config, Roots import logging @@ -85,6 +85,10 @@ def install(): avalon.register_plugin_path(avalon.Loader, plugin_path) avalon.register_plugin_path(avalon.Creator, plugin_path) + if project_name: + root_obj = Roots(project_name) + root = root_obj.roots + avalon.register_root(root) # apply monkey patched discover to original one avalon.discover = patched_discover