Make the entry point a function
otherwise it breaks the generated entry point loader, which will work but display a traceback on exit
This commit is contained in:
parent
8f1f877c96
commit
401048aba1
2 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue