Project/ProjectFormsBrowser.py

changeset 253
3ccdf551bde7
parent 248
f4561c24989a
child 461
34528aaedf1c
child 792
a13346916170
equal deleted inserted replaced
252:05692e3d37bf 253:3ccdf551bde7
609 self.compileRunning = False 609 self.compileRunning = False
610 e5App().getObject("ViewManager").enableEditorsCheckFocusIn(True) 610 e5App().getObject("ViewManager").enableEditorsCheckFocusIn(True)
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 if self.project.useSystemEol():
615 newline = None
616 else:
617 newline = self.project.getEolString()
618 f = open(ofn, "w", encoding = "utf-8", newline = newline)
615 for line in self.buf.splitlines(): 619 for line in self.buf.splitlines():
616 f.write(line + "\n") 620 f.write(line + "\n")
617 f.close() 621 f.close()
618 if self.compiledFile not in self.project.pdata["SOURCES"]: 622 if self.compiledFile not in self.project.pdata["SOURCES"]:
619 self.project.appendFile(ofn) 623 self.project.appendFile(ofn)

eric ide

mercurial