6 Commits

Author SHA1 Message Date
Behdad Esfahbod
35f2a657ea Update ./fonttools script to use Python 3 2019-12-05 15:17:53 +00:00
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
Behdad Esfahbod
25e9d826ba ./fonttools: Use realpath() instead of abspath()
Makes a symlink to this script do the right thing.
2017-04-20 13:39:15 -07:00
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
Behdad Esfahbod
c5c942293a [./fonttools] Add ./Lib to python path
See f5bf9b04de (commitcomment-19636642)
2016-10-31 11:55:15 -07:00
Behdad Esfahbod
f5bf9b04de Add a 'fonttools' command-line tool that simply runs modules
ttx is now equivalent to:
$ fonttools ttx

pyftsubset can be called as:
$ fonttools subset

varLib can be called as:
$ fonttools.varLib

Also adds a executable at toplevel called fonttools, such that
with "./fonttools ..." one can run stuff without installing.
Python seems to automatically include ./Lib into its search path.
2016-10-30 15:19:29 +02:00