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.
8 lines
190 B
Python
8 lines
190 B
Python
from __future__ import print_function, division, absolute_import
|
|
from fontTools.misc.py23 import *
|
|
import sys
|
|
from fontTools.varLib import main
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|