From d3958316f23d102f5f869b86e445d09b73c868cc Mon Sep 17 00:00:00 2001 From: Aniket Pant Date: Sun, 14 Apr 2013 00:23:45 +0530 Subject: [PATCH] Added default export folder to config Signed-off-by: Aniket Pant --- jrnl/Journal.py | 1 + jrnl/install.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/jrnl/Journal.py b/jrnl/Journal.py index fd101d9c..753e9a41 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -37,6 +37,7 @@ class Journal(object): 'tagsymbols': '@', 'highlight': True, 'linewrap': 80, + 'folder': os.path.expanduser("~/journal/"), } self.config.update(kwargs) diff --git a/jrnl/install.py b/jrnl/install.py index 90b5939e..467112cb 100644 --- a/jrnl/install.py +++ b/jrnl/install.py @@ -29,6 +29,7 @@ default_config = { 'tagsymbols': '@', 'highlight': True, 'linewrap': 80, + 'folder': os.path.expanduser("~/journal/"), } @@ -91,4 +92,7 @@ def install_jrnl(config_path='~/.jrnl_config'): config['password'] = password return config - \ No newline at end of file + # Where to export files? + path_query = 'Path to your journal folder (leave blank for ~/journal): ' + folder_path = raw_input(path_query).strip() or os.path.expanduser('~/journal') + default_config['folder'] = os.path.expanduser(folder_path)