Project/ProjectResourcesBrowser.py

changeset 245
de5c4effc747
parent 97
c4086afea02b
child 248
f4561c24989a
equal deleted inserted replaced
243:a1d982e68edf 245:de5c4effc747
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,

eric ide

mercurial