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

@@ -23,7 +23,7 @@ import sys
# Add eos root path to sys.path so we can import ourselves
path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
sys.path.append(os.path.realpath(os.path.join(path, "..", "..", "..")))
sys.path.append(os.path.realpath(os.path.join(path, "..", "pyfa")))
import json
import argparse
@@ -31,7 +31,7 @@ import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="This scripts dumps effects from an sqlite cache dump to mongo")
parser.add_argument("-d", "--db", required=True, type=str, help="The sqlalchemy connectionstring, example: sqlite:///c:/tq.db")
parser.add_argument("-j", "--json", required=True, type=str, help="The path to the json dum")
parser.add_argument("-j", "--json", required=True, type=str, help="The path to the json dump")
args = parser.parse_args()
jsonPath = os.path.expanduser(args.json)