initialize_plugins(plugin_dirs,
plugin_list)
| source code
|
Imports and initializes plugins from the directories in the list
specified by "plugins_dir". If no such list exists, then we
don't load any plugins.
If the user specifies a "load_plugins" list of plugins to
load, then we explicitly load those plugins in the order they're listed.
If the load_plugins key does not exist, then we load all the plugins in
the plugins directory using an alphanumeric sorting order.
NOTE: If PyBlosxom is part of a long-running process, you must restart
PyBlosxom in order to pick up any changes to your plugins.
- Parameters:
plugin_dirs (list of strings) - the list of directories to add to the sys.path because that's
where our plugins are located.
plugin_list (list of strings or None) - the list of plugins to load, or if None, we'll load all the
plugins we find in those dirs.
|