Fix path to point to actual gamedata - useful when importing from terminal and has no effect on pyfa's import (as it is specifically provided in pyfa/config.py)
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import os.path
|
from os.path import realpath, join, dirname, abspath
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
debug = False
|
debug = False
|
||||||
gamedataCache = True
|
gamedataCache = True
|
||||||
saveddataCache = True
|
saveddataCache = True
|
||||||
gamedata_connectionstring = 'sqlite:///' + os.path.expanduser(os.path.join("~", ".pyfa","eve.db"))
|
gamedata_connectionstring = 'sqlite:///' + unicode(realpath(join(dirname(abspath(__file__)), "..", "staticdata", "eve.db")), sys.getfilesystemencoding())
|
||||||
saveddata_connectionstring = 'sqlite:///:memory:'
|
saveddata_connectionstring = 'sqlite:///:memory:'
|
||||||
|
|
||||||
#Autodetect path, only change if the autodetection bugs out.
|
#Autodetect path, only change if the autodetection bugs out.
|
||||||
path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
|
path = dirname(unicode(__file__, sys.getfilesystemencoding()))
|
||||||
|
|||||||
Reference in New Issue
Block a user