Make backup of config when upgrading

Fixes #307
This commit is contained in:
Manuel Ebert 2015-04-04 18:36:34 +11:00
parent 2615070df0
commit c0ec95679b
4 changed files with 39 additions and 20 deletions

View file

@ -63,7 +63,7 @@ def upgrade_config(config):
for key in missing_keys:
config[key] = default_config[key]
save_config(config)
print("[.jrnl_conf updated to newest version]")
print("[.jrnl_conf updated to newest version at {}]".format(CONFIG_FILE_PATH))
def save_config(config):