This commit is contained in:
mathieui 2012-11-18 18:08:03 +01:00
parent d8b12a35df
commit 70d389ade7

View file

@ -7,6 +7,7 @@ plugin env.
from importlib import machinery from importlib import machinery
import os import os
from os import path
import sys import sys
import logging import logging
from gettext import gettext as _ from gettext import gettext as _
@ -37,7 +38,9 @@ try:
os.makedirs(plugins_conf_dir) os.makedirs(plugins_conf_dir)
except OSError: except OSError:
pass pass
default_plugin_path = path.join(path.dirname(path.dirname(__file__)), 'plugins')
sys.path.append(default_plugin_path)
sys.path.append(plugins_dir) sys.path.append(plugins_dir)
finder = machinery.PathFinder() finder = machinery.PathFinder()