made config file more readable
This commit is contained in:
parent
5de8723132
commit
83821405ee
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue