renamed 'IHostModule' to 'IHostAddon'

This commit is contained in:
Jakub Trllo 2022-08-26 15:06:50 +02:00
parent 52fdba85da
commit 2bfa9eea44
14 changed files with 31 additions and 31 deletions

View file

@ -35,7 +35,7 @@ from openpype.lib import (
from .interfaces import (
OpenPypeInterface,
IPluginPaths,
IHostModule,
IHostAddon,
ITrayModule,
ITrayService
)
@ -811,13 +811,13 @@ class ModulesManager:
Returns:
OpenPypeModule: Found host module by name.
None: There was not found module inheriting IHostModule which has
None: There was not found module inheriting IHostAddon which has
host name set to passed 'host_name'.
"""
for module in self.get_enabled_modules():
if (
isinstance(module, IHostModule)
isinstance(module, IHostAddon)
and module.host_name == host_name
):
return module
@ -828,13 +828,13 @@ class ModulesManager:
Returns:
Iterable[str]: All available host names based on enabled modules
inheriting 'IHostModule'.
inheriting 'IHostAddon'.
"""
host_names = {
module.host_name
for module in self.get_enabled_modules()
if isinstance(module, IHostModule)
if isinstance(module, IHostAddon)
}
return host_names