spinetoolbox.plugin_loader¶
Contains a minimal plugin loader infrastructure.
| author: |
|
|---|---|
| date: | 11.6.2019 |
Module Contents¶
Functions¶
get_plugins(subpath) |
Returns a list of plugin (module) names found in given subpath, |
load_plugin(plugin_name) |
Loads (imports) a plugin given its name. |
-
spinetoolbox.plugin_loader.get_plugins(subpath)[source]¶ Returns a list of plugin (module) names found in given subpath, relative to plugins main directory. Adds the directory to sys.path if any plugins were found.
Parameters: subpath (src) – look for plugins in this subdirectory of the plugins main dir