com.google.fonts/check/037: Simplify Ms Font Val subprocess call.
In Windows, a .exe can be run without specifying the .exe extension.
Therefore all three platforms can run FontValidator using the same
call.
@@ -155,14 +155,8 @@ 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'
- else:
- raise NotImplementedError('OS not supported')
fval_cmd = [
- fval_exec, "-file", font, "-all-tables",
+ "FontValidator", "-file", font, "-all-tables",
"-report-in-font-dir", "-no-raster-tests"
]
subprocess.check_output(fval_cmd, stderr=subprocess.STDOUT)
