From 70d389ade75e77ab8a28957641b98c235f62969d Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 18 Nov 2012 18:08:03 +0100 Subject: Fix #2154 --- src/plugin_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin_manager.py b/src/plugin_manager.py index a81e3033..f6a54058 100644 --- a/src/plugin_manager.py +++ b/src/plugin_manager.py @@ -7,6 +7,7 @@ plugin env. from importlib import machinery import os +from os import path import sys import logging from gettext import gettext as _ @@ -37,7 +38,9 @@ try: os.makedirs(plugins_conf_dir) except OSError: pass +default_plugin_path = path.join(path.dirname(path.dirname(__file__)), 'plugins') +sys.path.append(default_plugin_path) sys.path.append(plugins_dir) finder = machinery.PathFinder() -- cgit v1.2.3