Completely rewritten plugin loader to accept absolute modules, or single file paths

This commit is contained in:
Joel Collins 2018-12-12 15:00:30 +00:00
parent 86cc29ee84
commit 6d464349b7
2 changed files with 90 additions and 129 deletions

View file

@ -1,3 +1,3 @@
__all__ = ['search_plugin_dirs', 'find_plugins', 'load_plugin', 'PluginMount', 'MicroscopePlugin']
__all__ = ['module_from_file', 'load_plugin_class', 'load_plugin_module', 'class_from_map', 'PluginMount', 'MicroscopePlugin']
from .loader import search_plugin_dirs, find_plugins, load_plugin, PluginMount, MicroscopePlugin
from .loader import module_from_file, load_plugin_class, load_plugin_module, class_from_map, PluginMount, MicroscopePlugin