272 if self.dbs and not self.localCheckBox.isChecked(): |
272 if self.dbs and not self.localCheckBox.isChecked(): |
273 # we are cooperating with the eric5 IDE |
273 # we are cooperating with the eric5 IDE |
274 project = e5App().getObject("Project") |
274 project = e5App().getObject("Project") |
275 if project.isOpen() and project.isProjectSource(prog): |
275 if project.isOpen() and project.isProjectSource(prog): |
276 mainScript = project.getMainScript(True) |
276 mainScript = project.getMainScript(True) |
277 clientType = self.project.getProjectLanguage() |
277 clientType = project.getProjectLanguage() |
278 else: |
278 else: |
279 mainScript = os.path.abspath(prog) |
279 mainScript = os.path.abspath(prog) |
280 flags = Utilities.extractFlagsFromFile(mainScript) |
280 flags = Utilities.extractFlagsFromFile(mainScript) |
281 if mainScript.endswith( |
281 if mainScript.endswith( |
282 tuple(Preferences.getPython("PythonExtensions"))) or \ |
282 tuple(Preferences.getPython("PythonExtensions"))) or \ |