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
|
@ -8,8 +8,11 @@ from Translate import Translate
|
|||
|
||||
allow_reload = False # No source reload supported in this plugin
|
||||
|
||||
|
||||
plugin_dir = os.path.dirname(__file__)
|
||||
|
||||
if "_" not in locals():
|
||||
_ = Translate("plugins/Trayicon/languages/")
|
||||
_ = Translate(plugin_dir + "/languages/")
|
||||
|
||||
|
||||
@PluginManager.registerTo("Actions")
|
||||
|
@ -23,8 +26,6 @@ class ActionsPlugin(object):
|
|||
|
||||
self.main = main
|
||||
|
||||
fs_encoding = sys.getfilesystemencoding()
|
||||
|
||||
icon = notificationicon.NotificationIcon(
|
||||
os.path.join(os.path.dirname(os.path.abspath(__file__)), 'trayicon.ico'),
|
||||
"ZeroNet %s" % config.version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue