Add default export folder config

Signed-off-by: Aniket Pant <me@aniketpant.com>
This commit is contained in:
Aniket Pant 2013-06-21 19:20:57 +05:30
parent 868d29a92e
commit a959ed49fd
2 changed files with 6 additions and 1 deletions

View file

@ -45,6 +45,7 @@ class Journal(object):
'tagsymbols': '@',
'highlight': True,
'linewrap': 80,
'folder': os.path.expanduser("~/journal/"),
}
self.config.update(kwargs)

View file

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