ProjectPyramid/Project.py

changeset 104
3e34b23890af
parent 99
d148b68ccc76
child 106
2086bda4a893
equal deleted inserted replaced
103:73a2bcce8a58 104:3e34b23890af
751 if language == "Python3": 751 if language == "Python3":
752 pythonExeList = ["python3", "pypy3"] 752 pythonExeList = ["python3", "pypy3"]
753 elif language == "Python2": 753 elif language == "Python2":
754 pythonExeList = ["python2", "pypy2"] 754 pythonExeList = ["python2", "pypy2"]
755 if not virtualEnv: 755 if not virtualEnv:
756 pythonExeList.append("pypy")
757 virtualEnv = self.__getDebugEnvironment(language) 756 virtualEnv = self.__getDebugEnvironment(language)
758 757
759 for pythonExe in pythonExeList: 758 for pythonExe in pythonExeList:
760 for python in [ 759 for python in [
761 os.path.join(virtualEnv, "bin", pythonExe), 760 os.path.join(virtualEnv, "bin", pythonExe),
762 # omit the version character 761 # omit the version character
763 os.path.join(virtualEnv, "bin", pythonExe)[:-1], 762 os.path.join(virtualEnv, "bin", pythonExe)[:-1],
763 os.path.join(virtualEnv, pythonExe),
764 # omit the version character
765 os.path.join(virtualEnv, pythonExe)[:-1],
764 ]: 766 ]:
765 if os.path.exists(python): 767 if os.path.exists(python):
766 break 768 break
767 else: 769 else:
768 python = "" 770 python = ""

eric ide

mercurial