Restore __main__.py functionality

Allows you to access jrnl by running `python -m jrnl`
This commit is contained in:
MinchinWeb 2021-06-26 21:26:52 -06:00
parent e0536e7e5e
commit 355bd3f293

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