- Improved binary locator.

This commit is contained in:
ccremers
2006-08-09 09:26:15 +00:00
parent b180735f78
commit 2cd1178905
3 changed files with 24 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ from optparse import OptionParser, SUPPRESS_HELP
import Gui.Preference as Preference
import Gui.Mainwindow as Mainwindow
import Gui.Misc as Misc
import Scyther.Scyther as Scyther
#---------------------------------------------------------------------------
@@ -75,11 +76,16 @@ class ScytherApp(wx.App):
wx.GetApp().SetAppName("Scyther-gui")
# Parse arguments
basedir = os.path.abspath(os.path.dirname(sys.argv[0]))
(opts,args) = parseArgs()
# Load preferences file
Preference.init()
# Init Scyther libs
bindir = Preference.get("bindir",os.path.join(basedir,"Scyther"))
Scyther.init(bindir)
"""
Create and show the splash screen. It will then create and show
the main frame when it is time to do so.