diff --git a/.gitignore b/.gitignore index 9e5128e..12e6297 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ build/ dist/ MANIFEST __pycache__/ -src/__pycache__/ \ No newline at end of file +src/__pycache__/ +config.json \ No newline at end of file diff --git a/script.py b/script.py index 8d29e33..1585b09 100644 --- a/script.py +++ b/script.py @@ -657,7 +657,8 @@ def main(): if not Path(GLOBAL.configDirectory).is_dir(): os.makedirs(GLOBAL.configDirectory) - GLOBAL.config = getConfig(GLOBAL.configDirectory / "config.json") + GLOBAL.config = getConfig("config.json") if Path("config.json").exists() \ + else getConfig(GLOBAL.configDirectory / "config.json") if GLOBAL.arguments.log is not None: logDir = Path(GLOBAL.arguments.log)