Files
pyfa/config.py
2010-11-13 16:01:47 +01:00

21 lines
711 B
Python

import os.path
import sys
debug = False
#Path autodetection, only change if it doesn't work
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 + "?check_same_thread=False"
eos.config.gamedata_connectionstring = "sqlite:///" + gamedata + "?check_same_thread=False"