fonttools/fonttools
Cosimo Lupo b7bb391033
don't use sys.exit(...) inside main(), but only under if __name__ == "__main__"
The convention is that sys.exit(...) is called only if a module is run as a script,
and that main() entry points use return statements to report exit codes: 0 (or None)
for successful execution, or any non-zero integer for errors.

E.g. see the console scripts generated when installing with pip.
2017-01-11 12:10:58 +00:00

13 lines
297 B
Python
Executable File

#!/usr/bin/env python
from __future__ import print_function, division, absolute_import
import sys
import os.path
libdir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'Lib'))
sys.path.insert(0, libdir)
from fontTools.__main__ import main
if __name__ == '__main__':
sys.exit(main())