changeset 3429:8714dec41129

Federation Resource Locator plugin : Fix icon path
author Luis Falcon <falcon@gnuhealth.org>
date Thu, 31 Oct 2019 23:41:48 +0000
parents b9fc9d2ad520
children cb5c2094a22e
files plugins/frl/__init__.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/frl/__init__.py
+++ b/plugins/frl/__init__.py
@@ -26,7 +26,6 @@
 from tryton.common import MODELACCESS
 from gi.repository import Gtk
 
-
 import gettext
 import os
 import ssl
@@ -235,8 +234,8 @@
 
         self.columns = ["ID","Name","Lastname","Gender","DoB","Phone","Address"]
 
-        icon = os.path.expanduser("~") + \
-            '/gnuhealth_plugins/frl/icons/federation.svg'
+        icon = os.path.join(os.path.dirname(os.path.realpath(__file__)), \
+                            "icons/federation.svg")
 
         self.window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
         self.window.set_icon_from_file(icon)