Remove hard-coded directory path from plugins
This commit is contained in:
parent
1eb97ea381
commit
3e97c154a0
8 changed files with 39 additions and 17 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue