323 if pythonpath: |
323 if pythonpath: |
324 currentPythonPath = os.environ.get("PYTHONPATH") |
324 currentPythonPath = os.environ.get("PYTHONPATH") |
325 newPythonPath = os.pathsep.join(pythonpath) |
325 newPythonPath = os.pathsep.join(pythonpath) |
326 if currentPythonPath: |
326 if currentPythonPath: |
327 newPythonPath += os.pathsep + currentPythonPath |
327 newPythonPath += os.pathsep + currentPythonPath |
328 environment = "PYTHONPATH={0}".format(newPythonPath) |
328 environment = {"PYTHONPATH": newPythonPath} |
329 else: |
329 else: |
330 environment = "" |
330 environment = {} |
331 |
331 |
332 self.__debugger = debugger |
332 self.__debugger = debugger |
333 self.__debugger.debuggingFinished.connect(self.finished) |
333 self.__debugger.debuggingFinished.connect(self.finished) |
334 self.testRunAboutToBeStarted.emit() |
334 self.testRunAboutToBeStarted.emit() |
335 |
335 |