diff options
author | mathieui <mathieui@mathieui.net> | 2012-11-18 18:08:03 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-11-18 18:08:03 +0100 |
commit | 70d389ade75e77ab8a28957641b98c235f62969d (patch) | |
tree | 66ffc2b0b4c1a636b6144de9a8ad950d11ff0325 | |
parent | d8b12a35df88aaccf7403cecad73daf6e51acf70 (diff) | |
download | poezio-70d389ade75e77ab8a28957641b98c235f62969d.tar.gz poezio-70d389ade75e77ab8a28957641b98c235f62969d.tar.bz2 poezio-70d389ade75e77ab8a28957641b98c235f62969d.tar.xz poezio-70d389ade75e77ab8a28957641b98c235f62969d.zip |
Fix #2154
-rw-r--r-- | src/plugin_manager.py | 3 |
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() |