Restore __main__.py functionality (#1278)

Allows you to access jrnl by running `python -m jrnl`
This commit is contained in:
MinchinWeb 2021-06-26 23:55:17 -06:00 committed by Jonathan Wren
parent be1da17ab9
commit 4a9f01abb1

10
jrnl/__main__.py Normal file
View file

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