# The function generating the progress bar (if any).
def create_progress_bar(verbose):
- def noop_progress_bar(x, total):
+ def noop_progress_bar(x, total, file=None):
return x
progress_bar = noop_progress_bar
failed = False
with multiprocessing.Pool(njobs) as p:
results = p.imap_unordered(tool, combos)
- for invocation in progress_bar(results, total=len(combos)):
+ for invocation in progress_bar(results, total=len(combos), file=sys.stdout):
if invocation.exitstatus != 0:
failed = True
target = sys.stderr