From 4a9f01abb13f7ed50209b74339b537382e0db657 Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Sat, 26 Jun 2021 23:55:17 -0600 Subject: [PATCH] Restore `__main__.py` functionality (#1278) Allows you to access jrnl by running `python -m jrnl` --- jrnl/__main__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 jrnl/__main__.py diff --git a/jrnl/__main__.py b/jrnl/__main__.py new file mode 100644 index 00000000..e977369f --- /dev/null +++ b/jrnl/__main__.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +# Copyright (C) 2012-2021 jrnl contributors +# License: https://www.gnu.org/licenses/gpl-3.0.html + +import sys + +from .cli import cli + +if __name__ == "__main__": + sys.exit(cli())