Files
pyfa/config.py
cncfanatics f92c517bb5 Experimental change: disable gamedata caching completely and stop all
prefetching except for fetching the skill list
2010-10-27 19:13:05 +02:00

25 lines
773 B
Python

import os.path
import sys
debug = False
#Path autodetection, only change if it doesn't work
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"))
staticPath = homePath
saveddata = os.path.join(homePath, "saveddata.db")
gamedata = os.path.join(homePath, "eve.db")
import eos.config
#Caching modifiers, disable all gamedata caching, its unneeded.
eos.config.gamedataCache = None
# saveddata db location modifier, shouldn't ever need to touch this
eos.config.saveddata_connectionstring = "sqlite:///" + saveddata
eos.config.gamedata_connectionstring = "sqlite:///" + gamedata