--- a/eric6/PyUnit/UnittestDialog.py Sun Jul 14 16:33:33 2019 -0400 +++ b/eric6/PyUnit/UnittestDialog.py Sun Jul 14 16:46:46 2019 -0400 @@ -385,10 +385,10 @@ # we are cooperating with the eric6 IDE project = e5App().getObject("Project") if self.__forProject: - mainScript = os.path.abspath(project.getMainScript(True)) + mainScript = project.getMainScript(True) clientType = project.getProjectLanguage() if mainScript: - workdir = os.path.dirname(mainScript) + workdir = os.path.dirname(os.path.abspath(mainScript)) else: workdir = project.getProjectPath() sysPath = [workdir] @@ -712,14 +712,15 @@ # we are cooperating with the eric6 IDE project = e5App().getObject("Project") if self.__forProject: - mainScript = os.path.abspath(project.getMainScript(True)) + mainScript = project.getMainScript(True) clientType = project.getProjectLanguage() if mainScript: - workdir = os.path.dirname(mainScript) + workdir = os.path.dirname(os.path.abspath(mainScript)) + coverageFile = os.path.splitext(mainScript)[0] else: workdir = project.getProjectPath() + coverageFile = os.path.join(discoveryStart, "unittest") sysPath = [workdir] - coverageFile = os.path.splitext(mainScript)[0] if discover and not discoveryStart: discoveryStart = workdir else: