191 """ |
191 """ |
192 self.process.setReadChannel(QProcess.StandardOutput) |
192 self.process.setReadChannel(QProcess.StandardOutput) |
193 |
193 |
194 while self.process.canReadLine(): |
194 while self.process.canReadLine(): |
195 s = str(self.process.readLine(), |
195 s = str(self.process.readLine(), |
196 Preferences.getSystem("IOEncoding"), |
196 Preferences.getSystem("IOEncoding"), |
197 'replace') |
197 'replace') |
198 if self.rx_path.exactMatch(s): |
198 if self.rx_path.exactMatch(s): |
199 if self.lastProp: |
199 if self.lastProp: |
200 self.__generateItem( |
200 self.__generateItem( |
201 self.lastPath, self.lastProp, self.propBuffer) |
201 self.lastPath, self.lastProp, self.propBuffer) |
202 self.lastPath = self.rx_path.cap(1) |
202 self.lastPath = self.rx_path.cap(1) |
220 error pane. |
220 error pane. |
221 """ |
221 """ |
222 if self.process is not None: |
222 if self.process is not None: |
223 self.errorGroup.show() |
223 self.errorGroup.show() |
224 s = str(self.process.readAllStandardError(), |
224 s = str(self.process.readAllStandardError(), |
225 Preferences.getSystem("IOEncoding"), |
225 Preferences.getSystem("IOEncoding"), |
226 'replace') |
226 'replace') |
227 self.errors.insertPlainText(s) |
227 self.errors.insertPlainText(s) |
228 self.errors.ensureCursorVisible() |
228 self.errors.ensureCursorVisible() |