instance.py

changeset 10
76dbfb06eba0
parent 7
e189d4a6cb8c
child 12
16a8c63344c0
equal deleted inserted replaced
9:aa121291eb0e 10:76dbfb06eba0
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'':

mercurial