Fix for icon path when running shortcut

This commit is contained in:
David Amrhein 2016-08-21 18:58:50 -04:00
parent 5bfb067d0f
commit 84d340382b

View file

@ -256,6 +256,9 @@ def main():
def stop(sysTrayIcon):
replyToApplicationShouldTerminate_()
if getattr(sys, 'frozen', False) and os.name == "nt":
icon = os.path.join(os.path.dirname(sys.executable), ICON_PATH, 'lbry16.ico')
else:
icon = os.path.join(ICON_PATH, 'lbry16.ico')
hover_text = APP_NAME
menu_options = (('Open', icon, openui_),)