mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Allow for multi-module plugins
This commit is contained in:
parent
e7f724f042
commit
07221076ca
@ -58,7 +58,10 @@ class PluginManager(_AbstractManager):
|
|||||||
await self.load(plugin_package)
|
await self.load(plugin_package)
|
||||||
|
|
||||||
async def load(self, module):
|
async def load(self, module):
|
||||||
|
try:
|
||||||
plugin_class, plugin_type = inspect.getmembers(module, is_plugin).pop()
|
plugin_class, plugin_type = inspect.getmembers(module, is_plugin).pop()
|
||||||
|
except IndexError:
|
||||||
|
return
|
||||||
plugin_index = plugin_class.lower()
|
plugin_index = plugin_class.lower()
|
||||||
|
|
||||||
if self.server.config.plugins != '*' and \
|
if self.server.config.plugins != '*' and \
|
||||||
|
Loading…
Reference in New Issue
Block a user