Use plugin_dir variable.

This commit is contained in:
ysc3839 2016-12-03 20:20:26 +08:00
parent 62ae824b36
commit 4e0fea1d8b

View file

@ -24,7 +24,7 @@ sys.path.append(plugin_dir) # To able to load geoip lib
loc_cache = {}
if "_" not in locals():
_ = Translate("plugins/Sidebar/languages/")
_ = Translate(plugin_dir + "/languages/")
@PluginManager.registerTo("UiRequest")