poezio/poezio/__main__.py
Emmanuel Gil Peyrot e846825fc8 Add a check for Unicode support.
This makes poezio refuse to run if the environment is known broken.
2018-06-07 14:42:14 +02:00

13 lines
266 B
Python

def run():
from poezio.poezio import main, test_curses, test_env, test_unicode
if not test_curses() or not test_env() or not test_unicode():
import sys
sys.exit(1)
else:
main()
return 0
if __name__ == '__main__':
run()