diff --git a/scripts/build.py b/scripts/build.py index ba3234b5..706aab35 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -100,10 +100,10 @@ def run_make(module, target): print(',---------- running ' + make_cmd + ' in ' + path + ' -------------------------- >') os.chdir(path) p = subprocess.Popen(make_cmd, shell=True, stdout=subprocess.PIPE) - p.wait() - for line in iter(p.stdout.readline,''): + for line in iter(p.stdout.readline, ''): sys.stdout.write('| ' + line) # avoid extra newlines from print() - sys.stdout.flush() + sys.stdout.flush() + p.wait() print('`---------- running ' + make_cmd + ' in ' + path + ' -------------------------- <') if p.returncode: print(make_cmd + ' failed')