mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
remove get_current_host_name method
This commit is contained in:
parent
48537ecccf
commit
ebfc0a339a
1 changed files with 2 additions and 8 deletions
|
|
@ -37,11 +37,7 @@ from openpype.lib import (
|
|||
attribute_definitions,
|
||||
)
|
||||
from openpype.lib.attribute_definitions import get_attributes_keys
|
||||
from openpype.pipeline import (
|
||||
legacy_io,
|
||||
Anatomy,
|
||||
get_current_host_name,
|
||||
)
|
||||
from openpype.pipeline import legacy_io, Anatomy
|
||||
from openpype.pipeline.load import (
|
||||
get_loaders_by_name,
|
||||
get_contexts_for_repre_docs,
|
||||
|
|
@ -546,9 +542,7 @@ class AbstractTemplateBuilder(object):
|
|||
"""
|
||||
from openpype.widgets import message_window
|
||||
|
||||
module_name = 'openpype.hosts.{}.api.lib'.format(
|
||||
get_current_host_name()
|
||||
)
|
||||
module_name = 'openpype.hosts.{}.api.lib'.format(self.host_name)
|
||||
api_lib = __import__(module_name, fromlist=['get_main_window'])
|
||||
main_window = api_lib.get_main_window()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue