Project/ProjectFormsBrowser.py

changeset 45
9a18f4dbb493
parent 28
dde24fc7f7ba
child 53
c3eb7cc1ff8b
equal deleted inserted replaced
44:fe5cd20cb0eb 45:9a18f4dbb493
610 self.compileRunning = False 610 self.compileRunning = False
611 e4App().getObject("ViewManager").enableEditorsCheckFocusIn(True) 611 e4App().getObject("ViewManager").enableEditorsCheckFocusIn(True)
612 if exitStatus == QProcess.NormalExit and exitCode == 0 and self.buf: 612 if exitStatus == QProcess.NormalExit and exitCode == 0 and self.buf:
613 ofn = os.path.join(self.project.ppath, self.compiledFile) 613 ofn = os.path.join(self.project.ppath, self.compiledFile)
614 try: 614 try:
615 f = open(ofn, "w") 615 f = open(ofn, "w", encoding = "utf-8")
616 for line in self.buf.splitlines(): 616 for line in self.buf.splitlines():
617 f.write(line + os.linesep) 617 f.write(line + os.linesep)
618 f.close() 618 f.close()
619 if self.compiledFile not in self.project.pdata["SOURCES"]: 619 if self.compiledFile not in self.project.pdata["SOURCES"]:
620 self.project.appendFile(ofn) 620 self.project.appendFile(ofn)

eric ide

mercurial