ProjectPyramid/Project.py

changeset 39
94e448a362b2
parent 37
1b089e0fba1e
child 44
989c961c33ab
equal deleted inserted replaced
38:8db4afb551ed 39:94e448a362b2
480 @return python command (string) 480 @return python command (string)
481 """ 481 """
482 python = "python" 482 python = "python"
483 if isWindowsPlatform(): 483 if isWindowsPlatform():
484 python += ".exe" 484 python += ".exe"
485 else:
486 language = self.__e5project.getProjectLanguage()
487 if language == "Python3":
488 python = "python3"
489 elif language == "Python2":
490 python = "python2"
485 virtualEnv = self.__getVirtualEnvironment() 491 virtualEnv = self.__getVirtualEnvironment()
486 if virtualEnv: 492 if virtualEnv:
487 if isWindowsPlatform(): 493 if isWindowsPlatform():
488 python = os.path.join(virtualEnv, "Scripts", python) 494 python = os.path.join(virtualEnv, "Scripts", python)
495 if not os.path.exists(python):
496 python = os.path.join(virtualEnv, python)
489 else: 497 else:
490 python = os.path.join(virtualEnv, "bin", python) 498 python = os.path.join(virtualEnv, "bin", python)
499 if not os.path.exists(python):
500 python = python[:-1] # omit the version character
501
491 return python 502 return python
492 503
493 def __pyramidInfo(self): 504 def __pyramidInfo(self):
494 """ 505 """
495 Private slot to show some info about Pyramid. 506 Private slot to show some info about Pyramid.

eric ide

mercurial