do chdir() to read config files correctly

This commit is contained in:
Jylpah committed 2019-12-17 21:25:54 +02:00
1 parent cd93f815bd
commit b8546fabf9
3 files changed
+7 -1

No files matched your search

+2
View File
@@ -49,6 +49,8 @@ async def get_tankopedia(filename: str):
def main(argv):
global VERBOSE, DEBUG
# set the directory for the script
os.chdir(os.path.dirname(sys.argv[0]))
parser = argparse.ArgumentParser(description='Retrieve Tankopedia from WoTinspector.com')
parser.add_argument('--file', dest="outfile", help='Write Tankopedia to file')