def _check_compiler(self): output, exit_code = GnuCobolCompiler.check_compiler(self._compiler) if exit_code == 0: output = 'Compiler works!' else: output = 'Complier check failed:\n\nExit code: %d\nOutput:%s' % ( exit_code, output) self.ui.label.setText('Output:') self.ui.plainTextEdit.setPlainText(output) if exit_code != 0: self.ui.plainTextEdit.appendPlainText( '\nTip: You might need to adapt the environment variables set ' 'by the IDE to make it work.')
def _check_compiler(self): output, exit_code = GnuCobolCompiler.check_compiler(self._compiler) if exit_code == 0: output = 'Compiler works!' else: output = 'Complier check failed:\n\nExit code: %d\nOutput:%s' % ( exit_code, output) self.ui.label.setText('Output:') self.ui.plainTextEdit.setPlainText(output) if exit_code != 0: self.ui.plainTextEdit.appendPlainText( 'Tips:\n- You might need to adapt the environment variables ' 'set by the IDE to make it work.') if system.windows: self.ui.plainTextEdit.appendPlainText( '- If you see MinGW related errors ensure that there is no' ' additional installation of MinGW in ' '%s:\MinGW' % sys.executable[0])
def _check_compiler(self): output, exit_code = GnuCobolCompiler.check_compiler(self._compiler) if exit_code == 0: output = 'Compiler works!' else: output = 'Complier check failed:\n\nExit code: %d\nOutput:%s' % ( exit_code, output) self.ui.label.setText('Output:') self.ui.plainTextEdit.setPlainText(output) if exit_code != 0: self.ui.plainTextEdit.appendPlainText( 'Tips:\n- You might need to adapt the environment variables ' 'set by the IDE to make it work.') if system.windows: self.ui.plainTextEdit.appendPlainText( '- If you see MinGW related errors ensure that there is no' ' additional installation of MinGW in ' '%s:\MinGW' % sys.executable[0])