def _check_compiler(self, *_): self.apply() pth = self.lineEditCompilerPath.text() if os.path.exists(pth) or system.which(pth) is not None: DlgCheckCompiler.check(self, pth) else: QtWidgets.QMessageBox.warning( self, 'Invalid compiler path', 'Not a valid compiler path, path does not exists: %s!' % pth)
def _check_compiler(self, *_): self.apply() pth = self.lineEditCompilerPath.text() if os.path.exists(pth) or system.which(pth) is not None: p = QtCore.QProcess() p.start(pth, ["--version"]) p.waitForFinished() output = bytes(p.readAllStandardOutput()).decode(locale.getpreferredencoding()) DlgCheckCompiler.check(self, pth, output) else: QtWidgets.QMessageBox.warning( self, "Invalid compiler path", "Not a valid compiler path, path does not exists: %s!" % pth )
def _check_compiler(self, *_): self.apply() pth = self.lineEditCompilerPath.text() if os.path.exists(pth) or system.which(pth) is not None: p = QtCore.QProcess() p.start(pth, ['--version']) p.waitForFinished() output = bytes(p.readAllStandardOutput()).decode( locale.getpreferredencoding()) DlgCheckCompiler.check(self, pth, output) else: QtWidgets.QMessageBox.warning( self, 'Invalid compiler path', 'Not a valid compiler path, path does not exists: %s!' % pth)
def _check_compiler(self, *_): from open_cobol_ide.app import Application self.apply() Application.init_env() pth = self.lineEditCompilerPath.text() if os.path.exists(pth): p = QtCore.QProcess() p.start(pth, ["--version"]) p.waitForFinished() output = bytes(p.readAllStandardOutput()).decode(locale.getpreferredencoding()) DlgCheckCompiler.check(self, pth, output) else: QtWidgets.QMessageBox.warning( self, "Invalid compiler path", "Not a valid compiler path, path does not exists: %s!" % pth )
def _check_compiler(self, *_): from open_cobol_ide.app import Application self.apply() Application.init_env() pth = self.lineEditCompilerPath.text() if os.path.exists(pth): p = QtCore.QProcess() p.start(pth, ['--version']) p.waitForFinished() output = bytes(p.readAllStandardOutput()).decode( locale.getpreferredencoding()) DlgCheckCompiler.check(self, pth, output) else: QtWidgets.QMessageBox.warning( self, 'Invalid compiler path', 'Not a valid compiler path, path does not exists: %s!' % pth)