mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 01:18:31 +02:00
Don't die if you specify a directory (DayOne journal) to install
This commit is contained in:
parent
ef0227cf89
commit
b99c82f9be
1 changed files with 2 additions and 1 deletions
|
@ -87,6 +87,7 @@ def install_jrnl(config_path='~/.jrnl_config'):
|
|||
except OSError:
|
||||
pass
|
||||
|
||||
if not os.path.isdir(path): # if it's a directory and exists (e.g. a DayOne journal, let it be)
|
||||
open(default_config['journals']['default'], 'a').close() # Touch to make sure it's there
|
||||
|
||||
# Write config to ~/.jrnl_conf
|
||||
|
|
Loading…
Add table
Reference in a new issue