summaryrefslogtreecommitdiff
path: root/src/plugin_manager.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-11-18 18:08:03 +0100
committermathieui <mathieui@mathieui.net>2012-11-18 18:08:03 +0100
commit70d389ade75e77ab8a28957641b98c235f62969d (patch)
tree66ffc2b0b4c1a636b6144de9a8ad950d11ff0325 /src/plugin_manager.py
parentd8b12a35df88aaccf7403cecad73daf6e51acf70 (diff)
downloadpoezio-70d389ade75e77ab8a28957641b98c235f62969d.tar.gz
poezio-70d389ade75e77ab8a28957641b98c235f62969d.tar.bz2
poezio-70d389ade75e77ab8a28957641b98c235f62969d.tar.xz
poezio-70d389ade75e77ab8a28957641b98c235f62969d.zip
Fix #2154
Diffstat (limited to 'src/plugin_manager.py')
-rw-r--r--src/plugin_manager.py3
1 files changed, 3 insertions, 0 deletions
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()