def runProcess(self, runStr, progress): process = QProcess(iface) process.start(runStr) process.waitForFinished() returnedstring = str(process.readAllStandardOutput()) # print returnedstring progress.pushInfo(returnedstring) process.kill()
def runSurfit(self): runStr = os.path.join(self.plugin_dir, "bin/surfit ") + os.path.realpath(self.tclFilename) process = QProcess(iface) process.start(runStr) process.waitForFinished() # returnedstring = str(process.readAllStandardOutput()) # print returnedstring # progress.setText(returnedstring) process.kill()