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:
Patrice Peterson 2014-06-23 16:12:41 +02:00
parent b1398dc9b2
commit 6f5b3f52f3
2 changed files with 3 additions and 3 deletions

View file

@ -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)