trinity.utils.plugin_loader module
Load modules from custom directory
-
trinity.utils.plugin_loader.load_plugins() → None[source]
Load plugin modules from the default plugin directory or directories specified in the environment variable.
If the environment variable PLUGIN_DIRS_ENV_VAR is not set, it defaults to trinity/plugins.
-
trinity.utils.plugin_loader.load_plugin_from_dirs(plugin_dirs: str | List[str]) → None[source]
Load plugin modules from a directory.
-
trinity.utils.plugin_loader.load_from_file(file_path: str)[source]
Load modules from a Python file
- Parameters:
file_path (str) – The python file path.
- Returns:
The loaded module.
- Return type:
Any