spinetoolbox.plugin_loader

Contains a minimal plugin loader infrastructure.

author:
  1. Savolainen (VTT)
date:

11.6.2019

Module Contents

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
spinetoolbox.plugin_loader.load_plugin(plugin_name)[source]

Loads (imports) a plugin given its name.

Parameters:plugin_name (str) – Name of the plugin (module) to load