src/eric7/Project/CreateDialogCodeDialog.py

branch
eric7
changeset 9602
28e7f6cdf385
parent 9560
abffba70297f
child 9624
b47dfa7a137d
equal deleted inserted replaced
9601:5be43798a735 9602:28e7f6cdf385
104 self.packagesPath = self.project.getProjectPath() 104 self.packagesPath = self.project.getProjectPath()
105 105
106 if os.path.exists(self.srcFile): 106 if os.path.exists(self.srcFile):
107 vm = ericApp().getObject("ViewManager") 107 vm = ericApp().getObject("ViewManager")
108 ed = vm.getOpenEditor(self.srcFile) 108 ed = vm.getOpenEditor(self.srcFile)
109 if ed and not vm.checkDirty(ed): 109 if ed and not ed.checkDirty():
110 self.__initError = True 110 self.__initError = True
111 return 111 return
112 112
113 with contextlib.suppress(ImportError): 113 with contextlib.suppress(ImportError):
114 splitExt = os.path.splitext(self.srcFile) 114 splitExt = os.path.splitext(self.srcFile)

eric ide

mercurial