mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
commit
a856695e7d
2 changed files with 2 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue