From b3fa7a36d4e66aa4cc105f4d2b850fa661d79634 Mon Sep 17 00:00:00 2001 From: wijnand Date: Tue, 8 May 2018 11:09:53 +0200 Subject: [PATCH 1/2] Fixed issue with config name --- colorbleed/lib.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/colorbleed/lib.py b/colorbleed/lib.py index 82be01987e..8e1d0becc6 100644 --- a/colorbleed/lib.py +++ b/colorbleed/lib.py @@ -238,9 +238,7 @@ def collect_container_metadata(container): """ # TODO: Improve method of getting the host lib module host_name = _get_host_name() - - # This will cover nested module names like avalon.maya - package_name = "{}.{}.lib".format(__name__, host_name) + package_name = "colorbleed.{}.lib".format(host_name) hostlib = importlib.import_module(package_name) if not hasattr(hostlib, "get_additional_data"): From 6a60e1056f29b3df281bbe9fba64bed3cab5d8eb Mon Sep 17 00:00:00 2001 From: wijnand Date: Tue, 8 May 2018 11:30:34 +0200 Subject: [PATCH 2/2] Fixed issue with collect_container_metadata not being accessible from colorbleed.__init__ --- colorbleed/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/colorbleed/__init__.py b/colorbleed/__init__.py index 8b85412f06..0efbb1eb34 100644 --- a/colorbleed/__init__.py +++ b/colorbleed/__init__.py @@ -4,6 +4,7 @@ from pyblish import api as pyblish from avalon import api as avalon from .launcher_actions import register_launcher_actions +from lib import collect_container_metadata PACKAGE_DIR = os.path.dirname(__file__) PLUGINS_DIR = os.path.join(PACKAGE_DIR, "plugins")