591 if venvName in self.__virtualEnvironments: |
591 if venvName in self.__virtualEnvironments: |
592 return self.__virtualEnvironments[venvName].path |
592 return self.__virtualEnvironments[venvName].path |
593 else: |
593 else: |
594 return "" |
594 return "" |
595 |
595 |
596 def getVirtualenvNames(self, noRemote=False, noConda=False): |
596 def getVirtualenvNames(self, noRemote=False, noConda=False, noGlobals=False): |
597 """ |
597 """ |
598 Public method to get a list of defined virtual environments. |
598 Public method to get a list of defined virtual environments. |
599 |
599 |
600 @param noRemote flag indicating to exclude environments for remote |
600 @param noRemote flag indicating to exclude environments for remote |
601 debugging |
601 debugging (defaults to False) |
602 @type bool |
602 @type bool (optional) |
603 @param noConda flag indicating to exclude Conda environments |
603 @param noConda flag indicating to exclude Conda environments (defaults to False) |
604 @type bool |
604 @type bool (optional) |
|
605 @param noGlobals flag indicating to exclude global environments |
|
606 (defaults to False) |
|
607 @type bool (optional) |
605 @return list of defined virtual environments |
608 @return list of defined virtual environments |
606 @rtype list of str |
609 @rtype list of str |
607 """ |
610 """ |
608 environments = list(self.__virtualEnvironments) |
611 environments = list(self.__virtualEnvironments) |
609 if noRemote: |
612 if noRemote: |