Fix hanging on pdftohtml in windows.

This commit is contained in:
Kovid Goyal 2007-10-16 03:38:13 +00:00
parent 9abbcf6875
commit 901a41389a

View File

@ -43,8 +43,8 @@ def generate_html(pathtopdf, logger):
os.chdir(os.path.dirname(pf.name))
p = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
ret = p.wait()
logger.info(p.stdout.read())
ret = p.wait()
if ret != 0:
err = p.stderr.read()
raise ConversionError, err