mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Ability to specify PLUGIN_PATH as list
PLUGIN_PATH added to settings table
This commit is contained in:
parent
06080dd873
commit
c386e29d0c
3 changed files with 14 additions and 5 deletions
|
|
@ -65,7 +65,8 @@ class Pelican(object):
|
|||
self.plugins = []
|
||||
logger.debug('Temporarily adding PLUGIN_PATH to system path')
|
||||
_sys_path = sys.path[:]
|
||||
sys.path.insert(0, self.settings['PLUGIN_PATH'])
|
||||
for pluginpath in self.settings['PLUGIN_PATH']:
|
||||
sys.path.insert(0, pluginpath)
|
||||
for plugin in self.settings['PLUGINS']:
|
||||
# if it's a string, then import it
|
||||
if isinstance(plugin, six.string_types):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue