607 if venvName in self.__virtualEnvironments: |
607 if venvName in self.__virtualEnvironments: |
608 return self.__virtualEnvironments[venvName].path |
608 return self.__virtualEnvironments[venvName].path |
609 else: |
609 else: |
610 return "" |
610 return "" |
611 |
611 |
612 def getVirtualenvNames(self, noRemote=False, noConda=False): |
612 def getVirtualenvNames(self, noRemote=False, noConda=False, noGlobals=False): |
613 """ |
613 """ |
614 Public method to get a list of defined virtual environments. |
614 Public method to get a list of defined virtual environments. |
615 |
615 |
616 @param noRemote flag indicating to exclude environments for remote |
616 @param noRemote flag indicating to exclude environments for remote |
617 debugging |
617 debugging (defaults to False) |
618 @type bool |
618 @type bool (optional) |
619 @param noConda flag indicating to exclude Conda environments |
619 @param noConda flag indicating to exclude Conda environments (defaults to False) |
620 @type bool |
620 @type bool (optional) |
|
621 @param noGlobals flag indicating to exclude global environments |
|
622 (defaults to False) |
|
623 @type bool (optional) |
621 @return list of defined virtual environments |
624 @return list of defined virtual environments |
622 @rtype list of str |
625 @rtype list of str |
623 """ |
626 """ |
624 environments = list(self.__virtualEnvironments) |
627 environments = list(self.__virtualEnvironments) |
625 if noRemote: |
628 if noRemote: |