Merge branch 'master' of evefit.org:pyfa
This commit is contained in:
@@ -4,7 +4,12 @@ import sys
|
|||||||
debug = False
|
debug = False
|
||||||
|
|
||||||
#Path autodetection, only change if it doesn't work
|
#Path autodetection, only change if it doesn't work
|
||||||
path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
|
|
||||||
|
if hasattr(sys, "frozen"):
|
||||||
|
path = os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))
|
||||||
|
else:
|
||||||
|
path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
|
||||||
|
|
||||||
homePath = os.path.expanduser(os.path.join("~", ".pyfa"))
|
homePath = os.path.expanduser(os.path.join("~", ".pyfa"))
|
||||||
saveddata = os.path.join(homePath, "saveddata.db")
|
saveddata = os.path.join(homePath, "saveddata.db")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user