1395 if language == "Python3": |
1395 if language == "Python3": |
1396 pythonExeList = ["python3", "pypy3"] |
1396 pythonExeList = ["python3", "pypy3"] |
1397 elif language == "Python2": |
1397 elif language == "Python2": |
1398 pythonExeList = ["python2", "pypy2"] |
1398 pythonExeList = ["python2", "pypy2"] |
1399 if not virtualEnv: |
1399 if not virtualEnv: |
1400 pythonExeList.append("pypy") |
|
1401 virtualEnv = self.__getDebugEnvironment(language) |
1400 virtualEnv = self.__getDebugEnvironment(language) |
1402 |
1401 |
1403 for pythonExe in pythonExeList: |
1402 for pythonExe in pythonExeList: |
1404 for python in [ |
1403 for python in [ |
1405 os.path.join(virtualEnv, "bin", pythonExe), |
1404 os.path.join(virtualEnv, "bin", pythonExe), |
1406 # omit the version character |
1405 # omit the version character |
1407 os.path.join(virtualEnv, "bin", pythonExe)[:-1], |
1406 os.path.join(virtualEnv, "bin", pythonExe)[:-1], |
|
1407 os.path.join(virtualEnv, pythonExe), |
|
1408 # omit the version character |
|
1409 os.path.join(virtualEnv, pythonExe)[:-1], |
1408 ]: |
1410 ]: |
1409 if os.path.exists(python): |
1411 if os.path.exists(python): |
1410 break |
1412 break |
1411 else: |
1413 else: |
1412 python = "" |
1414 python = "" |