Project/ProjectFormsBrowser.py

changeset 245
de5c4effc747
parent 97
c4086afea02b
child 248
f4561c24989a
equal deleted inserted replaced
243:a1d982e68edf 245:de5c4effc747
611 if exitStatus == QProcess.NormalExit and exitCode == 0 and self.buf: 611 if exitStatus == QProcess.NormalExit and exitCode == 0 and self.buf:
612 ofn = os.path.join(self.project.ppath, self.compiledFile) 612 ofn = os.path.join(self.project.ppath, self.compiledFile)
613 try: 613 try:
614 f = open(ofn, "w", encoding = "utf-8") 614 f = open(ofn, "w", encoding = "utf-8")
615 for line in self.buf.splitlines(): 615 for line in self.buf.splitlines():
616 f.write(line + os.linesep) 616 f.write(line + "\n")
617 f.close() 617 f.close()
618 if self.compiledFile not in self.project.pdata["SOURCES"]: 618 if self.compiledFile not in self.project.pdata["SOURCES"]:
619 self.project.appendFile(ofn) 619 self.project.appendFile(ofn)
620 if not self.noDialog: 620 if not self.noDialog:
621 QMessageBox.information(None, 621 QMessageBox.information(None,

eric ide

mercurial