Skip to content

Commit

Permalink
Handle multiple inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and nyalldawson committed Apr 24, 2023
1 parent 6257a65 commit ea89bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/console/process_wrapper.py
Expand Up @@ -140,8 +140,8 @@ def wait(self, timeout=1):
def write(self, data):
""" Send data to the managed process"""
try:
self.p.stdin.write(data.encode("utf8"))
self.p.stdin.close()
self.p.stdin.write((data + "\n").encode("utf8"))
self.p.stdin.flush()
except BrokenPipeError as exc:
self.p.stdout.close()
self.p.stderr.close()
Expand Down

0 comments on commit ea89bab

Please sign in to comment.