Handle loading plugins on demand.
Plugins that are referenced as dependencies, but have not been registered now will be imported. Newer plugins should register themselves automatically, but older style plugins will be explicitly registered after import.
This commit is contained in:
@@ -6,8 +6,9 @@
|
||||
See the file LICENSE for copying permission.
|
||||
"""
|
||||
|
||||
from sleekxmpp.plugins.base import PluginManager, PluginNotFound, \
|
||||
BasePlugin, register_plugin
|
||||
from sleekxmpp.plugins.base import PluginManager, PluginNotFound, BasePlugin
|
||||
from sleekxmpp.plugins.base import register_plugin, load_plugin
|
||||
|
||||
|
||||
__all__ = [
|
||||
# Non-standard
|
||||
|
||||
Reference in New Issue
Block a user