197 |
197 |
198 It reads the output of the process and inserts it into the log. |
198 It reads the output of the process and inserts it into the log. |
199 """ |
199 """ |
200 if self.process is not None: |
200 if self.process is not None: |
201 s = str(self.process.readAllStandardOutput(), |
201 s = str(self.process.readAllStandardOutput(), |
202 Preferences.getSystem("IOEncoding"), |
202 Preferences.getSystem("IOEncoding"), |
203 'replace') |
203 'replace') |
204 self.__appendText(s, False) |
204 self.__appendText(s, False) |
205 |
205 |
206 def __readStderr(self): |
206 def __readStderr(self): |
207 """ |
207 """ |
208 Private slot to handle the readyReadStandardError signal. |
208 Private slot to handle the readyReadStandardError signal. |
209 |
209 |
210 It reads the error output of the process and inserts it into the log. |
210 It reads the error output of the process and inserts it into the log. |
211 """ |
211 """ |
212 if self.process is not None: |
212 if self.process is not None: |
213 s = str(self.process.readAllStandardError(), |
213 s = str(self.process.readAllStandardError(), |
214 Preferences.getSystem("IOEncoding"), |
214 Preferences.getSystem("IOEncoding"), |
215 'replace') |
215 'replace') |
216 self.__appendText(s, True) |
216 self.__appendText(s, True) |
217 |
217 |
218 def __appendText(self, txt, error=False): |
218 def __appendText(self, txt, error=False): |
219 """ |
219 """ |
220 Public method to append text to the end. |
220 Public method to append text to the end. |