Open sp6370 opened 3 months ago
Found that passing -u
to python
will allow using p.stdout.readline()
without waiting for the whole process to finish. I also tried passing bufsize=0
to Popen
but that didn't work.
subprocess.Popen([sys.executable, "-u", "run.py", ...], ...)
Fix: #2906