- Some reshuffling should restore matters.

This commit is contained in:
ccremers 2006-08-08 17:04:26 +00:00
parent 6f59760a70
commit e14d165816
4 changed files with 4 additions and 3 deletions

View File

@ -26,12 +26,12 @@ class Scyther(object):
if sys.platform.startswith('win'):
""" Windows """
# TODO hardcoded for now, bad
self.program = os.path.join("bin","Scyther.exe")
self.program = "Scyther.exe"
if not os.path.isfile(self.program):
print "I can't find the Scyther executable at %s" % (self.program)
else:
""" Non-windows """
self.program = os.path.join("bin","scyther")
self.program = "scyther"
# Init
self.spdl = None

View File

@ -5,6 +5,7 @@
""" Import externals """
import wx
import sys
import os
from optparse import OptionParser, SUPPRESS_HELP
#---------------------------------------------------------------------------
@ -41,7 +42,7 @@ def parseArgs():
class MySplashScreen(wx.SplashScreen):
def __init__(self):
bmp = wx.Image(Misc.mypath("images/scyther-splash.png")).ConvertToBitmap()
bmp = wx.Image(os.path.join("images","scyther-splash.png")).ConvertToBitmap()
wx.SplashScreen.__init__(self, bmp,
wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
5000, None, -1)