Here is my test code
process = sp.Popen(['make'] + [os.path.expandvars(item)
for item in make_line],
bufsize=1,
universal_newlines=True,
stdout=sp.PIPE, stderr=sp.STDOUT,
cwd=src_home)
output, _ = process.communicate()
inner_logger_console.info(str(output.strip()))
I am trying with bufsize=0 or 1 to get near to real-time output in the logs. What I have to do? process.communicate() has to go right?