made config file more readable

This commit is contained in:
RemixDev 2020-02-27 18:52:19 +01:00
parent 5de8723132
commit 83821405ee
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def initSettings():
defaultSettings = json.load(d) defaultSettings = json.load(d)
if not path.isfile(path.join(configFolder, 'config.json')): if not path.isfile(path.join(configFolder, 'config.json')):
with open(path.join(configFolder, 'config.json'), 'w') as f: with open(path.join(configFolder, 'config.json'), 'w') as f:
json.dump(f, defaultSettings, indent=2) json.dump(defaultSettings, f, indent=2)
with open(path.join(configFolder, 'config.json'), 'r') as configFile: with open(path.join(configFolder, 'config.json'), 'r') as configFile:
settings = json.load(configFile) settings = json.load(configFile)
settingsCheck() settingsCheck()