Commit 401048ab authored by mathieui's avatar mathieui

Make the entry point a function

otherwise it breaks the generated entry point loader, which will work
but display a traceback on exit
parent 8f1f877c
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
......@@ -96,7 +96,7 @@ setup(name="poezio",
'poezio_themes': 'data/themes'},
package_data={'poezio': ['default_config.cfg']},
scripts=['scripts/poezio_gpg_export'],
entry_points={'console_scripts': ['poezio = poezio.__main__']},
entry_points={'console_scripts': ['poezio = poezio.__main__:run']},
data_files=([('share/man/man1/', ['data/poezio.1']),
('share/poezio/', ['README.rst', 'COPYING', 'CHANGELOG'])]
+ find_doc('share/doc/poezio/source', 'source')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment