- Fixed path issue.
This commit is contained in:
parent
a517d729ef
commit
cdbb2c72b7
@ -5,6 +5,7 @@
|
|||||||
""" Import externals """
|
""" Import externals """
|
||||||
import wx
|
import wx
|
||||||
import os.path
|
import os.path
|
||||||
|
import sys
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -15,7 +16,9 @@ import Misc
|
|||||||
|
|
||||||
def ScytherIcon(window):
|
def ScytherIcon(window):
|
||||||
""" Set a nice Scyther icon """
|
""" 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):
|
if os.path.isfile(iconfile):
|
||||||
icon = wx.Icon(iconfile,wx.BITMAP_TYPE_ICO)
|
icon = wx.Icon(iconfile,wx.BITMAP_TYPE_ICO)
|
||||||
window.SetIcon(icon)
|
window.SetIcon(icon)
|
||||||
|
Loading…
Reference in New Issue
Block a user