- Better path handling.

This commit is contained in:
ccremers 2006-08-09 11:39:35 +00:00
parent b2bc575447
commit a660a0a1f7
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ bindir="."
#---------------------------------------------------------------------------
def init(dir):
def setBinDir(dir):
global bindir
bindir = dir

View File

@ -6,4 +6,4 @@
#
import Scyther
Scyther.init(__path__[0])
Scyther.setBinDir(__path__[0])

View File

@ -82,9 +82,9 @@ class ScytherApp(wx.App):
# Load preferences file
Preference.init()
# Init Scyther libs
# Init Scyther libs from preferences
bindir = Preference.get("bindir",os.path.join(basedir,"Scyther"))
Scyther.init(bindir)
Scyther.setBinDir(bindir)
"""
Create and show the splash screen. It will then create and show