VirtualEnv/VirtualenvManager.py

changeset 6896
3716c4af48bb
parent 6792
9dd854f05c83
equal deleted inserted replaced
6895:681a06d12ef6 6896:3716c4af48bb
541 if self.__virtualEnvironments[venvName]["variant"] == variant: 541 if self.__virtualEnvironments[venvName]["variant"] == variant:
542 environments.append(venvName) 542 environments.append(venvName)
543 543
544 return environments 544 return environments
545 545
546 def getVirtualenvVariant(self, venvName):
547 """
548 Public method to get the variant of a virtual environment.
549
550 @param venvName logical name for the virtual environment
551 @type str
552 @return Python variant of the environment
553 @rtype str
554 """
555 if venvName in self.__virtualEnvironments:
556 return "Python{0}".format(
557 self.__virtualEnvironments[venvName]["variant"])
558 else:
559 return ""
560
546 def isGlobalEnvironment(self, venvName): 561 def isGlobalEnvironment(self, venvName):
547 """ 562 """
548 Public method to test, if a given environment is a global one. 563 Public method to test, if a given environment is a global one.
549 564
550 @param venvName logical name of the virtual environment 565 @param venvName logical name of the virtual environment

eric ide

mercurial