Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
b5fd9da
1
Parent(s):
0087907
Fix delayed printing of custom stdout
Browse files- pysr/sr.py +1 -0
pysr/sr.py
CHANGED
@@ -412,6 +412,7 @@ def _cmd_runner(command, **kwargs):
|
|
412 |
.encode(sys.stdout.encoding, errors='replace'))
|
413 |
|
414 |
sys.stdout.buffer.write(decoded_line)
|
|
|
415 |
|
416 |
process.stdout.close()
|
417 |
process.wait()
|
|
|
412 |
.encode(sys.stdout.encoding, errors='replace'))
|
413 |
|
414 |
sys.stdout.buffer.write(decoded_line)
|
415 |
+
sys.stdout.flush()
|
416 |
|
417 |
process.stdout.close()
|
418 |
process.wait()
|