Ability to specify PLUGIN_PATH as list

PLUGIN_PATH added to settings table
This commit is contained in:
Lonewolf 2014-03-02 19:21:22 +05:30 committed by Justin Mayer
commit c386e29d0c
3 changed files with 14 additions and 5 deletions

View file

@ -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):