From 4530a56d66af8d4326c3b21fcf5762d7fb1f4a33 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Tue, 10 Sep 2019 22:54:27 +0200 Subject: [PATCH] Plugins in PLUGIN_PATHS should be searched after the ones installed from Pypi --- pelican/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/__init__.py b/pelican/__init__.py index 86c956b0..0a189bd5 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -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):