213 proc.setProcessEnvironment(env) |
213 proc.setProcessEnvironment(env) |
214 proc.start(interpreter, args) |
214 proc.start(interpreter, args) |
215 started = proc.waitForStarted(5000) |
215 started = proc.waitForStarted(5000) |
216 finished = proc.waitForFinished(30000) |
216 finished = proc.waitForFinished(30000) |
217 if started and finished: |
217 if started and finished: |
218 output = proc.readAllStandardOutput() |
218 output = proc.readAllStandardError() |
219 outText = str(output, "utf-8", "replace") |
219 outText = str(output, "utf-8", "replace") |
|
220 if "@@eric_start@@" in outText and "@@eric_end@@" in outText: |
|
221 # it is something we sent via UicLoadUi[56].py |
|
222 outText = outText.split("@@eric_start@@")[1].split("@@eric_end@@")[0] |
220 if proc.exitCode() == 0: |
223 if proc.exitCode() == 0: |
221 ok = True |
224 ok = True |
222 uicText = outText.strip() |
225 uicText = outText.strip() |
223 else: |
226 else: |
224 EricMessageBox.critical( |
227 EricMessageBox.critical( |