This commit is contained in:
Apolloni 2013-04-17 01:30:19 -07:00
commit a2932daa12

View file

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