mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 09:08:32 +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,7 +87,8 @@ def install_jrnl(config_path='~/.jrnl_config'):
|
|||
except OSError:
|
||||
pass
|
||||
|
||||
open(default_config['journals']['default'], 'a').close() # Touch to make sure it's there
|
||||
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
|
||||
with open(config_path, 'w') as f:
|
||||
|
|
Loading…
Add table
Reference in a new issue