PluginManager.import_and_load_directory

PluginManager.import_and_load_directory(path, module_prefix=None, recursive=False, **kwargs)[source]

Import and load all plugins contained in a directory.

This function will import and load all plugins contained in a directory. Any additional keyword arguments will be passed to the loaded plugins.

Parameters
  • path (str) – The full path to the directory to load from.

  • module_prefix (str) – A prefix for the name of the modules that will be imported.

  • recursive (bool) – Whether to consider subdirectories.