devctrl.utility.plugins#

Load user plugin files into a namespace.

Module attributes

PLUGIN_LOAD_VAR

Name of the top-level variable that disables loading a plugin when set to False.

PLUGIN_TYPE_VAR

Name of the top-level variable that declares the plugin type, e.g. for GUI integration.

Functions

exec_plugin_file

Execute a plugin file in the given namespace.

find_plugin_files

Find plugin files in the given directories.

get_plugin_dirs

Normalize a plugin directory specification into a list of existing directories.

is_plugin_load_enabled

Check whether a plugin file should be loaded, via its top-level PLUGIN_LOAD constant.

load_plugins

Load all plugins from the given directories into the given namespace.

read_plugin_type

Read the top-level PLUGIN_TYPE declaration from a plugin file, without executing it.