instance.py

changeset 12
16a8c63344c0
parent 10
76dbfb06eba0
child 20
fdfbe5d7b677
equal deleted inserted replaced
11:0bff53095f28 12:16a8c63344c0
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, stdin=None) 43 self.proc=Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE)
44
45 # We don't do password input etc.
46 self.proc.stdin.close()
44 47
45 def read_result(self): 48 def read_result(self):
46 stream=self.proc.stdout 49 stream=self.proc.stdout
47 line=stream.read(-1) 50 line=stream.read(-1)
48 if line==b'': 51 if line==b'':

mercurial