diff options
author | mathieui <mathieui@mathieui.net> | 2016-07-03 01:59:05 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-07-03 01:59:05 +0200 |
commit | 401048aba1b6e4cb0b5bf28e2319c89593253cc3 (patch) | |
tree | 8dfce3850f40f8bf6e30bc0fb67f7eef133e2546 /poezio/__main__.py | |
parent | 8f1f877c967ee0a080bdecdcf14a400d52bdc475 (diff) | |
download | poezio-401048aba1b6e4cb0b5bf28e2319c89593253cc3.tar.gz poezio-401048aba1b6e4cb0b5bf28e2319c89593253cc3.tar.bz2 poezio-401048aba1b6e4cb0b5bf28e2319c89593253cc3.tar.xz poezio-401048aba1b6e4cb0b5bf28e2319c89593253cc3.zip |
Make the entry point a function
otherwise it breaks the generated entry point loader, which will work
but display a traceback on exit
Diffstat (limited to 'poezio/__main__.py')
-rw-r--r-- | poezio/__main__.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/poezio/__main__.py b/poezio/__main__.py index d924d7fc..f9eefb1b 100644 --- a/poezio/__main__.py +++ b/poezio/__main__.py @@ -1,7 +1,9 @@ -from poezio.poezio import test_curses, main +def run(): + from poezio.poezio import test_curses, main -if test_curses(): - main() -else: - import sys - sys.exit(1) + if test_curses(): + main() + else: + import sys + sys.exit(1) + return 0 |