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) |