Fix paths

This commit is contained in:
blitzmann
2014-11-29 20:49:10 -05:00
parent 7836506444
commit ee8395e8fd
4 changed files with 17 additions and 9 deletions

View File

@@ -5,8 +5,10 @@ import os.path
import re
import sqlite3
script_dir = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
# Connect to database and set up cursor
db = sqlite3.connect(os.path.join("..", "..", "..", "staticdata", "eve.db"))
db = sqlite3.connect(os.path.join(script_dir, "..", "pyfa", "staticdata", "eve.db"))
cursor = db.cursor()
# Queries to get raw data