Added config file location as current directory
This commit is contained in:
parent
ff68b5f70f
commit
3448ba15a9
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,4 +2,5 @@ build/
|
|||
dist/
|
||||
MANIFEST
|
||||
__pycache__/
|
||||
src/__pycache__/
|
||||
src/__pycache__/
|
||||
config.json
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue