PluginManager.import_and_load_file

PluginManager.import_and_load_file(path, module_name=None, **kwargs)[source]

Import and load all plugins contained in python source file.

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

Parameters
  • path (str) – The full path to the python source file to consider.

  • module_name (str) – The module name that the loaded source file should use.