mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
chore: continue to read output (#945)
This commit is contained in:
@@ -440,15 +440,18 @@ class LocalEnv(Env[ASpecificLocalConf]):
|
||||
for fd, event in events:
|
||||
if event & select.POLLIN:
|
||||
if fd == stdout_fd:
|
||||
output = process.stdout.readline()
|
||||
if output:
|
||||
while True:
|
||||
output = process.stdout.readline()
|
||||
if output == "":
|
||||
break
|
||||
Console().print(output.strip(), markup=False)
|
||||
combined_output += output
|
||||
elif fd == stderr_fd:
|
||||
chunk = os.read(stderr_fd, 4096)
|
||||
if chunk:
|
||||
error = chunk.decode(errors="replace")
|
||||
Console().print(error, end="", markup=False)
|
||||
while True:
|
||||
error = process.stderr.readline()
|
||||
if error == "":
|
||||
break
|
||||
Console().print(error.strip(), markup=False)
|
||||
combined_output += error
|
||||
|
||||
# Capture any final output
|
||||
|
||||
Reference in New Issue
Block a user