383 venvName = self.venvComboBox.currentText() |
383 venvName = self.venvComboBox.currentText() |
384 |
384 |
385 # we are cooperating with the eric6 IDE |
385 # we are cooperating with the eric6 IDE |
386 project = e5App().getObject("Project") |
386 project = e5App().getObject("Project") |
387 if self.__forProject: |
387 if self.__forProject: |
388 mainScript = os.path.abspath(project.getMainScript(True)) |
388 mainScript = project.getMainScript(True) |
389 clientType = project.getProjectLanguage() |
389 clientType = project.getProjectLanguage() |
390 if mainScript: |
390 if mainScript: |
391 workdir = os.path.dirname(mainScript) |
391 workdir = os.path.dirname(os.path.abspath(mainScript)) |
392 else: |
392 else: |
393 workdir = project.getProjectPath() |
393 workdir = project.getProjectPath() |
394 sysPath = [workdir] |
394 sysPath = [workdir] |
395 if not discoveryStart: |
395 if not discoveryStart: |
396 discoveryStart = workdir |
396 discoveryStart = workdir |
710 venvName = self.venvComboBox.currentText() |
710 venvName = self.venvComboBox.currentText() |
711 |
711 |
712 # we are cooperating with the eric6 IDE |
712 # we are cooperating with the eric6 IDE |
713 project = e5App().getObject("Project") |
713 project = e5App().getObject("Project") |
714 if self.__forProject: |
714 if self.__forProject: |
715 mainScript = os.path.abspath(project.getMainScript(True)) |
715 mainScript = project.getMainScript(True) |
716 clientType = project.getProjectLanguage() |
716 clientType = project.getProjectLanguage() |
717 if mainScript: |
717 if mainScript: |
718 workdir = os.path.dirname(mainScript) |
718 workdir = os.path.dirname(os.path.abspath(mainScript)) |
|
719 coverageFile = os.path.splitext(mainScript)[0] |
719 else: |
720 else: |
720 workdir = project.getProjectPath() |
721 workdir = project.getProjectPath() |
|
722 coverageFile = os.path.join(discoveryStart, "unittest") |
721 sysPath = [workdir] |
723 sysPath = [workdir] |
722 coverageFile = os.path.splitext(mainScript)[0] |
|
723 if discover and not discoveryStart: |
724 if discover and not discoveryStart: |
724 discoveryStart = workdir |
725 discoveryStart = workdir |
725 else: |
726 else: |
726 if discover: |
727 if discover: |
727 if not discoveryStart: |
728 if not discoveryStart: |