summaryrefslogtreecommitdiff
path: root/poezio/__main__.py
blob: 1f46f0512c7ceb370cc47448a60d126711776442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def run():
    from poezio.poezio import main, test_curses, test_env

    if not test_curses() or not test_env():
        import sys
        sys.exit(1)
    else:
        main()
    return 0


if __name__ == '__main__':
    run()