Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
remove plural from de/register_loader_plugins_path
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Mar 15, 2022
1 parent 348ccc6 commit 4f7d99b
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 65 deletions.
10 changes: 5 additions & 5 deletions openpype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def install():
from openpype.modules import load_modules
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
register_loader_plugin_path,
)
from avalon import pipeline

Expand All @@ -94,7 +94,7 @@ def modified_emit(obj, record):
log.info("Registering global plug-ins..")
pyblish.register_plugin_path(PUBLISH_PATH)
pyblish.register_discovery_filter(filter_pyblish_plugins)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)

project_name = os.environ.get("AVALON_PROJECT")

Expand Down Expand Up @@ -122,7 +122,7 @@ def modified_emit(obj, record):
continue

pyblish.register_plugin_path(path)
register_loader_plugins_path(path)
register_loader_plugin_path(path)
avalon.register_plugin_path(LegacyCreator, path)
avalon.register_plugin_path(avalon.InventoryAction, path)

Expand All @@ -142,12 +142,12 @@ def _on_task_change():
@import_wrapper
def uninstall():
"""Uninstall Pype from Avalon."""
from openpype.pipeline import deregister_loader_plugins_path
from openpype.pipeline import deregister_loader_plugin_path

log.info("Deregistering global plug-ins..")
pyblish.deregister_plugin_path(PUBLISH_PATH)
pyblish.deregister_discovery_filter(filter_pyblish_plugins)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
log.info("Global plug-ins unregistred")

# restore original discover
Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/aftereffects/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from openpype.api import Logger
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
import openpype.hosts.aftereffects
from openpype.lib import register_event_callback
Expand Down Expand Up @@ -71,7 +71,7 @@ def install():
pyblish.api.register_host("aftereffects")
pyblish.api.register_plugin_path(PUBLISH_PATH)

register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)
log.info(PUBLISH_PATH)

Expand All @@ -84,7 +84,7 @@ def install():

def uninstall():
pyblish.api.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)


Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/blender/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
from openpype.api import Logger
from openpype.lib import (
Expand Down Expand Up @@ -54,7 +54,7 @@ def install():
pyblish.api.register_host("blender")
pyblish.api.register_plugin_path(str(PUBLISH_PATH))

register_loader_plugins_path(str(LOAD_PATH))
register_loader_plugin_path(str(LOAD_PATH))
avalon.api.register_plugin_path(LegacyCreator, str(CREATE_PATH))

lib.append_user_scripts()
Expand All @@ -76,7 +76,7 @@ def uninstall():
pyblish.api.deregister_host("blender")
pyblish.api.deregister_plugin_path(str(PUBLISH_PATH))

deregister_loader_plugins_path(str(LOAD_PATH))
deregister_loader_plugin_path(str(LOAD_PATH))
avalon.api.deregister_plugin_path(LegacyCreator, str(CREATE_PATH))

if not IS_HEADLESS:
Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/flame/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from openpype.api import Logger
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
from .lib import (
set_segment_data_marker,
Expand All @@ -37,7 +37,7 @@ def install():

pyblish.register_host("flame")
pyblish.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.register_plugin_path(LegacyCreator, CREATE_PATH)
avalon.register_plugin_path(avalon.InventoryAction, INVENTORY_PATH)
log.info("OpenPype Flame plug-ins registred ...")
Expand All @@ -52,7 +52,7 @@ def uninstall():

log.info("Deregistering Flame plug-ins..")
pyblish.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.deregister_plugin_path(LegacyCreator, CREATE_PATH)
avalon.deregister_plugin_path(avalon.InventoryAction, INVENTORY_PATH)

Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/fusion/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from openpype.api import Logger
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
import openpype.hosts.fusion

Expand Down Expand Up @@ -67,7 +67,7 @@ def install():
pyblish.api.register_plugin_path(PUBLISH_PATH)
log.info("Registering Fusion plug-ins..")

register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)
avalon.api.register_plugin_path(avalon.api.InventoryAction, INVENTORY_PATH)

Expand All @@ -91,7 +91,7 @@ def uninstall():
pyblish.api.deregister_plugin_path(PUBLISH_PATH)
log.info("Deregistering Fusion plug-ins..")

deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)
avalon.api.deregister_plugin_path(
avalon.api.InventoryAction, INVENTORY_PATH
Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/harmony/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from openpype.lib import register_event_callback
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
import openpype.hosts.harmony
import openpype.hosts.harmony.api as harmony
Expand Down Expand Up @@ -184,7 +184,7 @@ def install():

pyblish.api.register_host("harmony")
pyblish.api.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)
log.info(PUBLISH_PATH)

Expand All @@ -198,7 +198,7 @@ def install():

def uninstall():
pyblish.api.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)


Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/hiero/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from openpype.api import Logger
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
from openpype.tools.utils import host_tools
from . import lib, menu, events
Expand Down Expand Up @@ -49,7 +49,7 @@ def install():
log.info("Registering Hiero plug-ins..")
pyblish.register_host("hiero")
pyblish.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.register_plugin_path(LegacyCreator, CREATE_PATH)
avalon.register_plugin_path(avalon.InventoryAction, INVENTORY_PATH)

Expand All @@ -71,7 +71,7 @@ def uninstall():
log.info("Deregistering Hiero plug-ins..")
pyblish.deregister_host("hiero")
pyblish.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.deregister_plugin_path(LegacyCreator, CREATE_PATH)

# register callback for switching publishable
Expand Down
4 changes: 2 additions & 2 deletions openpype/hosts/houdini/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
register_loader_plugin_path,
)
import openpype.hosts.houdini
from openpype.hosts.houdini.api import lib
Expand Down Expand Up @@ -53,7 +53,7 @@ def install():
pyblish.api.register_host("hpython")

pyblish.api.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)

log.info("Installing callbacks ... ")
Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/maya/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from openpype.lib.path_tools import HostDirmap
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
from openpype.hosts.maya.lib import copy_workspace_mel
from . import menu, lib
Expand Down Expand Up @@ -57,7 +57,7 @@ def install():
pyblish.api.register_host("mayapy")
pyblish.api.register_host("maya")

register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)
avalon.api.register_plugin_path(avalon.api.InventoryAction, INVENTORY_PATH)
log.info(PUBLISH_PATH)
Expand Down Expand Up @@ -186,7 +186,7 @@ def uninstall():
pyblish.api.deregister_host("mayapy")
pyblish.api.deregister_host("maya")

deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)
avalon.api.deregister_plugin_path(
avalon.api.InventoryAction, INVENTORY_PATH
Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/nuke/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from openpype.lib import register_event_callback
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
from openpype.tools.utils import host_tools

Expand Down Expand Up @@ -103,7 +103,7 @@ def install():

log.info("Registering Nuke plug-ins..")
pyblish.api.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)
avalon.api.register_plugin_path(avalon.api.InventoryAction, INVENTORY_PATH)

Expand All @@ -129,7 +129,7 @@ def uninstall():
log.info("Deregistering Nuke plug-ins..")
pyblish.deregister_host("nuke")
pyblish.api.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)

pyblish.api.deregister_callback(
Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/photoshop/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from openpype.lib import register_event_callback
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
import openpype.hosts.photoshop

Expand Down Expand Up @@ -72,7 +72,7 @@ def install():
pyblish.api.register_host("photoshop")

pyblish.api.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)
log.info(PUBLISH_PATH)

Expand All @@ -85,7 +85,7 @@ def install():

def uninstall():
pyblish.api.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)


Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/resolve/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from openpype.api import Logger
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
from . import lib
from . import PLUGINS_DIR
Expand Down Expand Up @@ -46,7 +46,7 @@ def install():
pyblish.register_plugin_path(PUBLISH_PATH)
log.info("Registering DaVinci Resovle plug-ins..")

register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.register_plugin_path(LegacyCreator, CREATE_PATH)
avalon.register_plugin_path(avalon.InventoryAction, INVENTORY_PATH)

Expand All @@ -71,7 +71,7 @@ def uninstall():
pyblish.deregister_plugin_path(PUBLISH_PATH)
log.info("Deregistering DaVinci Resovle plug-ins..")

deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.deregister_plugin_path(LegacyCreator, CREATE_PATH)
avalon.deregister_plugin_path(avalon.InventoryAction, INVENTORY_PATH)

Expand Down
8 changes: 4 additions & 4 deletions openpype/hosts/tvpaint/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from openpype.lib import register_event_callback
from openpype.pipeline import (
LegacyCreator,
register_loader_plugins_path,
deregister_loader_plugins_path,
register_loader_plugin_path,
deregister_loader_plugin_path,
)

from .lib import (
Expand Down Expand Up @@ -81,7 +81,7 @@ def install():

pyblish.api.register_host("tvpaint")
pyblish.api.register_plugin_path(PUBLISH_PATH)
register_loader_plugins_path(LOAD_PATH)
register_loader_plugin_path(LOAD_PATH)
avalon.api.register_plugin_path(LegacyCreator, CREATE_PATH)

registered_callbacks = (
Expand All @@ -103,7 +103,7 @@ def uninstall():
log.info("OpenPype - Uninstalling TVPaint integration")
pyblish.api.deregister_host("tvpaint")
pyblish.api.deregister_plugin_path(PUBLISH_PATH)
deregister_loader_plugins_path(LOAD_PATH)
deregister_loader_plugin_path(LOAD_PATH)
avalon.api.deregister_plugin_path(LegacyCreator, CREATE_PATH)


Expand Down
Loading

0 comments on commit 4f7d99b

Please sign in to comment.