fix: Initialize the config file with indent

pull/818/head
Raphaël Vinot 2023-10-24 12:36:55 +02:00
parent 1c5c178d20
commit d6e664d7ca
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def validate_generic_config_file():
if not user_config.exists():
# The config file was never created, copy the sample.
with user_config.open('w') as _fw:
json.dump(generic_config_sample, _fw)
json.dump(generic_config_sample, _fw, indent=2, sort_keys=True)
with user_config.open() as f:
generic_config = json.load(f)