mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Merge pull request #61 from alapolloni/master
Update jrnl.py so that a trailing / for a DayOne journal config is seen as a DayOne journal.
This commit is contained in:
commit
36fe783e5e
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,10 @@ def cli():
|
||||||
mode_compose, mode_export = guess_mode(args, config)
|
mode_compose, mode_export = guess_mode(args, config)
|
||||||
|
|
||||||
# open journal file or folder
|
# open journal file or folder
|
||||||
if os.path.isdir(config['journal']) and config['journal'].endswith(".dayone"):
|
|
||||||
|
|
||||||
|
if os.path.isdir(config['journal']) and ( config['journal'].endswith(".dayone") or \
|
||||||
|
config['journal'].endswith(".dayone/")):
|
||||||
journal = Journal.DayOne(**config)
|
journal = Journal.DayOne(**config)
|
||||||
else:
|
else:
|
||||||
journal = Journal.Journal(**config)
|
journal = Journal.Journal(**config)
|
||||||
|
|
Loading…
Add table
Reference in a new issue