38 def launch(self): |
38 def launch(self): |
39 cmd=self.construct_cmdline() |
39 cmd=self.construct_cmdline() |
40 |
40 |
41 logging.info('Launching ' + str(cmd)) |
41 logging.info('Launching ' + str(cmd)) |
42 |
42 |
43 self.proc=Popen(cmd, stdout=PIPE, stderr=PIPE) |
43 self.proc=Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=None) |
44 |
44 |
45 def read_result(self): |
45 def read_result(self): |
46 stream=self.proc.stdout |
46 stream=self.proc.stdout |
47 line=stream.read(-1) |
47 line=stream.read(-1) |
48 if line==b'': |
48 if line==b'': |