mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
Allow use of environment variables in config paths
This patch simply adds several calls to `os.expandvars` to functions that parse paths in the config file.
This commit is contained in:
parent
b1398dc9b2
commit
6f5b3f52f3
2 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ def run(manual_args=None):
|
|||
config.update(journal_conf)
|
||||
else: # But also just give them a string to point to the journal file
|
||||
config['journal'] = journal_conf
|
||||
config['journal'] = os.path.expanduser(config['journal'])
|
||||
config['journal'] = os.path.expanduser(os.path.expandvars(config['journal']))
|
||||
touch_journal(config['journal'])
|
||||
mode_compose, mode_export = guess_mode(args, config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue