174 """ |
174 """ |
175 Public slot used to check the project files for bad indentations. |
175 Public slot used to check the project files for bad indentations. |
176 """ |
176 """ |
177 project = e5App().getObject("Project") |
177 project = e5App().getObject("Project") |
178 project.saveAllScripts() |
178 project.saveAllScripts() |
179 files = [os.path.join(project.ppath, file) \ |
179 ppath = project.getProjectPath() |
|
180 files = [os.path.join(ppath, file) \ |
180 for file in project.pdata["SOURCES"] \ |
181 for file in project.pdata["SOURCES"] \ |
181 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))] |
182 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))] |
182 |
183 |
183 self.__projectTabnannyDialog = TabnannyDialog() |
184 self.__projectTabnannyDialog = TabnannyDialog() |
184 self.__projectTabnannyDialog.show() |
185 self.__projectTabnannyDialog.show() |
185 self.__projectTabnannyDialog.start(files) |
186 self.__projectTabnannyDialog.prepare(files, project) |
186 |
187 |
187 def __projectBrowserTabnanny(self): |
188 def __projectBrowserTabnanny(self): |
188 """ |
189 """ |
189 Private method to handle the tabnanny context menu action of the project |
190 Private method to handle the tabnanny context menu action of the project |
190 sources browser. |
191 sources browser. |