Use 'version' in configs

This commit is contained in:
Manuel Ebert 2014-09-12 15:27:48 -07:00
parent 1f73d28147
commit 0a19701ae9

View file

@ -36,7 +36,7 @@ def module_exists(module_name):
return True return True
default_config = { default_config = {
'jrnl_version': __version__, 'version': __version__,
'journals': { 'journals': {
"default": JOURNAL_FILE_PATH "default": JOURNAL_FILE_PATH
}, },
@ -78,7 +78,7 @@ def load_or_install_jrnl():
if os.path.exists(config_path): if os.path.exists(config_path):
config = util.load_config(CONFIG_FILE_PATH) config = util.load_config(CONFIG_FILE_PATH)
upgrade_config(config) upgrade_config(config)
upgrade.upgrade_jrnl_if_necessary() upgrade.upgrade_jrnl_if_necessary(CONFIG_FILE_PATH)
return config return config
else: else:
install() install()