Changed config.json path

This commit is contained in:
Ali Parlakci
2018-07-13 14:10:21 +03:00
parent 1e8eaa1a8d
commit 5e3c79160b
3 changed files with 6 additions and 4 deletions

View File

@@ -609,8 +609,9 @@ def main():
print(err)
sys.exit()
GLOBAL.config = getConfig("config.json")
if not Path(GLOBAL.configDirectory).is_dir():
os.makedirs(GLOBAL.configDirectory)
GLOBAL.config = getConfig(GLOBAL.configDirectory / "config.json")
if GLOBAL.arguments.log is not None:
logDir = Path(GLOBAL.arguments.log)