mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-29 11:06:14 +00:00
made config file more readable
This commit is contained in:
parent
5de8723132
commit
83821405ee
|
@ -19,7 +19,7 @@ def initSettings():
|
|||
defaultSettings = json.load(d)
|
||||
if not path.isfile(path.join(configFolder, 'config.json')):
|
||||
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:
|
||||
settings = json.load(configFile)
|
||||
settingsCheck()
|
||||
|
|
Loading…
Reference in a new issue