Plugins in PLUGIN_PATHS should be searched after the ones installed from Pypi

This commit is contained in:
Lucas Cimon 2019-09-10 22:54:27 +02:00
commit 4530a56d66
No known key found for this signature in database
GPG key ID: 08DA831E717571EE

View file

@ -75,7 +75,7 @@ class Pelican(object):
logger.debug('Temporarily adding PLUGIN_PATHS to system path')
_sys_path = sys.path[:]
for pluginpath in self.settings['PLUGIN_PATHS']:
sys.path.insert(0, pluginpath)
sys.path.append(pluginpath)
for plugin in self.settings['PLUGINS']:
# if it's a string, then import it
if isinstance(plugin, six.string_types):