diff --git a/jrnl/jrnl.py b/jrnl/jrnl.py index ac3ba67e..a6e76c9c 100755 --- a/jrnl/jrnl.py +++ b/jrnl/jrnl.py @@ -161,7 +161,10 @@ def cli(): mode_compose, mode_export = guess_mode(args, config) # 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) else: journal = Journal.Journal(**config)