Skip to content

Commit

Permalink
Merge branch 'ensure-tta-in-path' into 'master'
Browse files Browse the repository at this point in the history
[buils.py] make sure ttfautohint is in PATH; raise if subprocess fails



See merge request !44
  • Loading branch information
Jose Sole committed Nov 20, 2015
2 parents 9045032 + 627d7d4 commit 6936c8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ def ttfautohint(infile, outfile=None, ctrlfile=None, options=None):
cmdline += [infile, outfile]
logging.info("Run ttfautohint")
logging.info("$ " + " ".join(cmdline))
if not shutil.which('ttfautohint'):
raise RuntimeError('ttfautohint: command not found')
try:
subprocess.check_call(cmdline)
except:
import traceback
traceback.print_exc()
raise
else:
if overwrite:
os.remove(infile)
Expand Down

0 comments on commit 6936c8c

Please sign in to comment.