From a959ed49fd84f6c2db7d64650e8d4a4e5873685f Mon Sep 17 00:00:00 2001 From: Aniket Pant Date: Fri, 21 Jun 2013 19:20:57 +0530 Subject: [PATCH] Add default export folder 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 9cbe41e2..732a491e 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -45,6 +45,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 acb519a9..53b98052 100644 --- a/jrnl/install.py +++ b/jrnl/install.py @@ -32,6 +32,7 @@ default_config = { 'tagsymbols': '@', 'highlight': True, 'linewrap': 80, + 'folder': os.path.expanduser("~/journal/"), } @@ -94,4 +95,7 @@ def install_jrnl(config_path='~/.jrnl_config'): config['password'] = password return config - + # 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)