505 if exitStatus == QProcess.NormalExit and exitCode == 0 and self.buf: |
505 if exitStatus == QProcess.NormalExit and exitCode == 0 and self.buf: |
506 ofn = os.path.join(self.project.ppath, self.compiledFile) |
506 ofn = os.path.join(self.project.ppath, self.compiledFile) |
507 try: |
507 try: |
508 f = open(ofn, "w", encoding = "utf-8") |
508 f = open(ofn, "w", encoding = "utf-8") |
509 for line in self.buf.splitlines(): |
509 for line in self.buf.splitlines(): |
510 f.write(line + os.linesep) |
510 f.write(line + "\n") |
511 f.close() |
511 f.close() |
512 if self.compiledFile not in self.project.pdata["SOURCES"]: |
512 if self.compiledFile not in self.project.pdata["SOURCES"]: |
513 self.project.appendFile(ofn) |
513 self.project.appendFile(ofn) |
514 if not self.noDialog: |
514 if not self.noDialog: |
515 QMessageBox.information(None, |
515 QMessageBox.information(None, |