use the unbuffered output for latex commands

This commit is contained in:
ita 2012-05-04 10:05:10 +02:00
parent 2c4d772e3d
commit b6455df988
1 changed files with 15 additions and 0 deletions

View File

@ -92,6 +92,21 @@ class tex(Task.Task):
Execute the program **makeindex**
"""
def exec_command(self, cmd, **kw):
"""
Override :py:meth:`waflib.Task.Task.exec_command` to execute the command without buffering (latex may prompt for inputs)
:return: the return code
:rtype: int
"""
bld = self.generator.bld
try:
if not kw.get('cwd', None):
kw['cwd'] = bld.cwd
except AttributeError:
bld.cwd = kw['cwd'] = bld.variant_dir
return Utils.subprocess.Popen(cmd, **kw).wait()
def scan_aux(self, node):
"""
A recursive regex-based scanner that finds included auxiliary files.