PyUnit/UnittestDialog.py

changeset 1782
90bd49fec9ff
parent 1509
c0b5e693b0eb
child 2101
5bac7dee9e1a
child 2303
0ed4ed026c16
equal deleted inserted replaced
1781:34a44041c4cb 1782:90bd49fec9ff
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 \

eric ide

mercurial