333 if self.dbs: |
333 if self.dbs: |
334 # we are cooperating with the eric5 IDE |
334 # we are cooperating with the eric5 IDE |
335 project = e5App().getObject("Project") |
335 project = e5App().getObject("Project") |
336 if project.isOpen() and project.isProjectSource(prog): |
336 if project.isOpen() and project.isProjectSource(prog): |
337 mainScript = project.getMainScript(True) |
337 mainScript = project.getMainScript(True) |
|
338 if not mainScript: |
|
339 mainScript = os.path.abspath(prog) |
338 else: |
340 else: |
339 mainScript = os.path.abspath(prog) |
341 mainScript = os.path.abspath(prog) |
340 else: |
342 else: |
341 mainScript = os.path.abspath(prog) |
343 mainScript = os.path.abspath(prog) |
342 cover = coverage( |
344 cover = coverage( |