Remove hard-coded directory path from plugins

This commit is contained in:
shortcutme 2019-08-02 16:05:19 +02:00
parent 1eb97ea381
commit 3e97c154a0
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
8 changed files with 39 additions and 17 deletions

View file

@ -18,9 +18,8 @@ from Translate import Translate
from util import helper
from .ZipStream import ZipStream
plugin_dir = "plugins/Sidebar"
plugin_dir = os.path.dirname(__file__)
media_dir = plugin_dir + "/media"
sys.path.append(plugin_dir) # To able to load geoip lib
loc_cache = {}
if "_" not in locals():