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