Merge pull request #118 from aardschok/FUS39b

Post PR fixes
This commit is contained in:
Wijnand Koreman 2018-05-08 11:33:20 +02:00 committed by GitHub
commit a856695e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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")

View file

@ -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"):