From cdbb2c72b715f281200c4eb390c2cc12d10acf83 Mon Sep 17 00:00:00 2001 From: ccremers Date: Fri, 11 Aug 2006 11:04:22 +0000 Subject: [PATCH] - Fixed path issue. --- gui/Gui/Icon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/Gui/Icon.py b/gui/Gui/Icon.py index bcefe9d..0015c5e 100644 --- a/gui/Gui/Icon.py +++ b/gui/Gui/Icon.py @@ -5,6 +5,7 @@ """ Import externals """ import wx import os.path +import sys #--------------------------------------------------------------------------- @@ -15,7 +16,9 @@ import Misc def ScytherIcon(window): """ Set a nice Scyther icon """ - iconfile = Misc.mypath(os.path.join("images","scyther-gui-32.ico")) + basedir = os.path.abspath(os.path.dirname(sys.argv[0])) + path = os.path.join(basedir,"Images") + iconfile = Misc.mypath(os.path.join(path,"scyther-gui-32.ico")) if os.path.isfile(iconfile): icon = wx.Icon(iconfile,wx.BITMAP_TYPE_ICO) window.SetIcon(icon)