From b66480ff1d112009c7ef9fa9b05840b86af378e7 Mon Sep 17 00:00:00 2001 From: No GUI Date: Sun, 14 Apr 2013 13:19:03 -0700 Subject: [PATCH] Support a custom location for the config Export $JRNL_CONFIG to override the location instead of using $HOME. Too many dotfiles are literring it, ya' know? Linux desktop users, you might like if you follow the XDG standards: export JRNL_CONFIG=$XDG_CONFIG_HOME/jrnl/config --- jrnl/jrnl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/jrnl.py b/jrnl/jrnl.py index 2de3fd16..e7bd2ef4 100755 --- a/jrnl/jrnl.py +++ b/jrnl/jrnl.py @@ -24,7 +24,7 @@ __version__ = '1.0.0-rc1' __author__ = 'Manuel Ebert, Stephan Gabler' __license__ = 'MIT' -CONFIG_PATH = os.path.expanduser('~/.jrnl_config') +CONFIG_PATH = os.environ.get('JRNL_CONFIG', os.path.expanduser('~/.jrnl_config')) PYCRYPTO = install.module_exists("Crypto") def parse_args():