Run FontValidator.exe if user's OS is Win
@@ -155,8 +155,12 @@ def com_google_fonts_check_037(font):
try:
import subprocess
+ if os.name == 'posix':
+ fval_exec = 'FontValidator'
+ elif os.name == 'nt':
+ fval_exec = 'FontValidator.exe'
fval_cmd = [
- "FontValidator", "-file", font, "-all-tables",
+ fval_exec, "-file", font, "-all-tables",
"-report-in-font-dir", "-no-raster-tests"
]
subprocess.check_output(fval_cmd, stderr=subprocess.STDOUT)
