- Better path handling.
This commit is contained in:
parent
b2bc575447
commit
a660a0a1f7
@ -24,7 +24,7 @@ bindir="."
|
|||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
def init(dir):
|
def setBinDir(dir):
|
||||||
global bindir
|
global bindir
|
||||||
|
|
||||||
bindir = dir
|
bindir = dir
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
#
|
#
|
||||||
import Scyther
|
import Scyther
|
||||||
|
|
||||||
Scyther.init(__path__[0])
|
Scyther.setBinDir(__path__[0])
|
||||||
|
@ -82,9 +82,9 @@ class ScytherApp(wx.App):
|
|||||||
# Load preferences file
|
# Load preferences file
|
||||||
Preference.init()
|
Preference.init()
|
||||||
|
|
||||||
# Init Scyther libs
|
# Init Scyther libs from preferences
|
||||||
bindir = Preference.get("bindir",os.path.join(basedir,"Scyther"))
|
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
|
Create and show the splash screen. It will then create and show
|
||||||
|
Loading…
Reference in New Issue
Block a user