Merge branch 'master' of evefit.org:pyfa

This commit is contained in:
cncfanatics
2010-09-23 12:50:33 +02:00

View File

@@ -4,10 +4,15 @@ import sys
debug = False
#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"))
saveddata = os.path.join(homePath, "saveddata.db")
# saveddata db location modifier, shouldn't ever need to touch this
import eos.config
eos.config.saveddata_connectionstring = "sqlite:///" + saveddata
eos.config.saveddata_connectionstring = "sqlite:///" + saveddata