From 54d1b35ce7c2ec2ed2fc113d7ec51f04a6fd544f Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 25 Jan 2015 11:09:43 -0500 Subject: [PATCH] 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) --- eos/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eos/config.py b/eos/config.py index 192982e1f..35e2fe0dc 100644 --- a/eos/config.py +++ b/eos/config.py @@ -1,11 +1,11 @@ -import os.path +from os.path import realpath, join, dirname, abspath import sys debug = False gamedataCache = 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:' #Autodetect path, only change if the autodetection bugs out. -path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding())) +path = dirname(unicode(__file__, sys.getfilesystemencoding()))