Fix #2154
This commit is contained in:
parent
d8b12a35df
commit
70d389ade7
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue