Skip to content

Commit

Permalink
Fixe problem in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
UuuNyaa committed Dec 30, 2022
1 parent 3f3d0f2 commit a50e2b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions motion_generate_tools/executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ def _enqueue_output():
input_text_io = self._process.stdout

buffer: bytearray
for buffer in iter(input_text_io.readline, b''):
text = buffer.decode(encoding).rstrip()
_invoke_callback(line_callback, text)
while self._process.poll() is None:
for buffer in iter(input_text_io.readline, b''):
text = buffer.decode(encoding).rstrip()
_invoke_callback(line_callback, text)

input_text_io.close()
self._exit_code = self._process.poll()
Expand Down

0 comments on commit a50e2b6

Please sign in to comment.