cmd = "perl -pe 's|hskip(.*?)(cm\\|in\\|pt\\|mm\\|em)|hspace{\\1\\2}|g' %s > %s"%(input_file, output_file) ret = subprocess.call(cmd, shell=True) if ret != 0: logging.error('FAILED: %s'%cmd)
Error output:
'hskip' is not recognized as an internal or external command, operable program or batch file. 2021-02-21 16:39:46,454 root ERROR FAILED: perl -pe 's|hskip(.*?)(cm\|in\|pt\|mm\|em)|hspace{\1\2}|g' .\data\sample\im2latex_formulas.lst > .\data\sample\formul`as.norm.lst 2021-02-21 16:39:46,457 root INFO Jobs finished**