create jrnl with abspath

This commit is contained in:
= 2020-05-29 15:33:47 -04:00
parent 30c4528149
commit 6aa522cb2c

View file

@ -135,7 +135,7 @@ def install():
# Where to create the journal?
path_query = f"Path to your journal file (leave blank for {JOURNAL_FILE_PATH}): "
journal_path = input(path_query).strip() or JOURNAL_FILE_PATH
journal_path = os.path.abspath(input(path_query).strip()) or JOURNAL_FILE_PATH
default_config["journals"][DEFAULT_JOURNAL_KEY] = os.path.expanduser(
os.path.expandvars(journal_path)
)