implemented 'install_ayon_plugins' as replacement of 'install_openpype_plugins'

This commit is contained in:
Jakub Trllo 2024-02-06 18:14:28 +01:00
parent 4477327def
commit b17815dc1b
5 changed files with 13 additions and 7 deletions

View file

@ -63,7 +63,7 @@ class Commands:
)
from ayon_core.addon import AddonsManager
from ayon_core.pipeline import (
install_openpype_plugins,
install_ayon_plugins,
get_global_context,
)
from ayon_core.tools.utils.host_tools import show_publish
@ -75,7 +75,7 @@ class Commands:
log = Logger.get_logger("CLI-publish")
install_openpype_plugins()
install_ayon_plugins()
manager = AddonsManager()

View file

@ -7,7 +7,7 @@ import pyblish.util
import ayon_core.hosts.celaction
from ayon_core.lib import Logger
from ayon_core.tools.utils import host_tools
from ayon_core.pipeline import install_openpype_plugins
from ayon_core.pipeline import install_ayon_plugins
log = Logger.get_logger("celaction")
@ -20,7 +20,7 @@ PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
def main():
# Registers pype's Global pyblish plugins
install_openpype_plugins()
install_ayon_plugins()
if os.path.exists(PUBLISH_PATH):
log.info(f"Registering path: {PUBLISH_PATH}")

View file

@ -45,11 +45,11 @@ class LibraryLoaderAddon(AYONAddon, ITrayModule):
def show_library_loader(self):
if self._library_loader_window is None:
from ayon_core.pipeline import install_openpype_plugins
from ayon_core.pipeline import install_ayon_plugins
self._init_library_loader()
install_openpype_plugins()
install_ayon_plugins()
self._library_loader_window.show()

View file

@ -73,6 +73,7 @@ from .actions import (
)
from .context_tools import (
install_ayon_plugins,
install_openpype_plugins,
install_host,
uninstall_host,
@ -170,6 +171,7 @@ __all__ = (
"deregister_inventory_action_path",
# --- Process context ---
"install_ayon_plugins",
"install_openpype_plugins",
"install_host",
"uninstall_host",

View file

@ -168,7 +168,7 @@ def install_host(host):
install_openpype_plugins(project_name, host_name)
def install_openpype_plugins(project_name=None, host_name=None):
def install_ayon_plugins(project_name=None, host_name=None):
# Make sure modules are loaded
load_addons()
@ -234,6 +234,10 @@ def install_openpype_plugins(project_name=None, host_name=None):
register_inventory_action_path(path)
def install_openpype_plugins(project_name=None, host_name=None):
install_ayon_plugins(project_name, host_name)
def uninstall_host():
"""Undo all of what `install()` did"""
host = registered_host()