mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix context tools
This commit is contained in:
parent
1428e84b11
commit
bfcfdeb674
1 changed files with 4 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ from pyblish.lib import MessageHandler
|
|||
|
||||
from ayon_core import AYON_CORE_ROOT
|
||||
from ayon_core.host import HostBase
|
||||
from ayon_core.client import get_ayon_server_api_connection
|
||||
from ayon_core.lib import is_in_tests, initialize_ayon_connection, emit_event
|
||||
from ayon_core.addon import load_addons, AddonsManager
|
||||
from ayon_core.settings import get_project_settings
|
||||
|
|
@ -106,7 +105,7 @@ def install_host(host):
|
|||
_is_installed = True
|
||||
|
||||
# Make sure global AYON connection has set site id and version
|
||||
get_ayon_server_api_connection()
|
||||
initialize_ayon_connection()
|
||||
|
||||
addons_manager = _get_addons_manager()
|
||||
|
||||
|
|
@ -155,8 +154,10 @@ def install_host(host):
|
|||
|
||||
|
||||
def install_ayon_plugins(project_name=None, host_name=None):
|
||||
# Make sure modules are loaded
|
||||
# Make sure global AYON connection has set site id and version
|
||||
# - this is necessary if 'install_host' is not called
|
||||
initialize_ayon_connection()
|
||||
# Make sure addons are loaded
|
||||
load_addons()
|
||||
|
||||
log.info("Registering global plug-ins..")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue