added IHostModule to be able identify module representing a host

This commit is contained in:
Jakub Trllo 2022-08-11 12:39:27 +02:00
parent 0c108db712
commit 4f9d1c34e2

View file

@ -1,4 +1,4 @@
from abc import abstractmethod
from abc import abstractmethod, abstractproperty
from openpype import resources
@ -320,3 +320,13 @@ class ISettingsChangeListener(OpenPypeInterface):
self, old_value, new_value, changes, project_name, new_value_metadata
):
pass
class IHostModule(OpenPypeInterface):
"""Module which also contain a host implementation."""
@abstractproperty
def host_name(self):
"""Name of host which module represents."""
pass