522 if venvName in self.__virtualEnvironments: |
522 if venvName in self.__virtualEnvironments: |
523 return self.__virtualEnvironments[venvName]["path"] |
523 return self.__virtualEnvironments[venvName]["path"] |
524 else: |
524 else: |
525 return "" |
525 return "" |
526 |
526 |
527 def getVirtualenvNames(self, noRemote=False): |
527 def getVirtualenvNames(self, noRemote=False, noConda=False): |
528 """ |
528 """ |
529 Public method to get a list of defined virtual environments. |
529 Public method to get a list of defined virtual environments. |
530 |
530 |
531 @param noRemote flag indicating to exclude environments for remote |
531 @param noRemote flag indicating to exclude environments for remote |
532 debugging |
532 debugging |
|
533 @type bool |
|
534 @param noConda flag indicating to exclude Conda environments |
533 @type bool |
535 @type bool |
534 @return list of defined virtual environments |
536 @return list of defined virtual environments |
535 @rtype list of str |
537 @rtype list of str |
536 """ |
538 """ |
537 environments = list(self.__virtualEnvironments.keys()) |
539 environments = list(self.__virtualEnvironments.keys()) |
538 if noRemote: |
540 if noRemote: |
539 environments = [name for name in environments |
541 environments = [name for name in environments |
540 if not self.isRemoteEnvironment(name)] |
542 if not self.isRemoteEnvironment(name)] |
|
543 if noConda: |
|
544 environments = [name for name in environments |
|
545 if not self.isCondaEnvironment(name)] |
541 |
546 |
542 return environments |
547 return environments |
543 |
548 |
544 def isGlobalEnvironment(self, venvName): |
549 def isGlobalEnvironment(self, venvName): |
545 """ |
550 """ |