513 if venvName in self.__virtualEnvironments: |
513 if venvName in self.__virtualEnvironments: |
514 return self.__virtualEnvironments[venvName]["path"] |
514 return self.__virtualEnvironments[venvName]["path"] |
515 else: |
515 else: |
516 return "" |
516 return "" |
517 |
517 |
518 def getVirtualenvNames(self): |
518 def getVirtualenvNames(self, noRemote=False): |
519 """ |
519 """ |
520 Public method to get a list of defined virtual environments. |
520 Public method to get a list of defined virtual environments. |
521 |
521 |
|
522 @param noRemote flag indicating to exclude environments for remote |
|
523 debugging |
|
524 @type bool |
522 @return list of defined virtual environments |
525 @return list of defined virtual environments |
523 @rtype list of str |
526 @rtype list of str |
524 """ |
527 """ |
525 return list(self.__virtualEnvironments.keys()) |
528 environments = list(self.__virtualEnvironments.keys()) |
|
529 if noRemote: |
|
530 environments = [name for name in environments |
|
531 if not self.isRemoteEnvironment(name)] |
|
532 |
|
533 return environments |
526 |
534 |
527 def getVirtualenvNamesForVariant(self, variant): |
535 def getVirtualenvNamesForVariant(self, variant): |
528 """ |
536 """ |
529 Public method to get a list of virtual environments for a given |
537 Public method to get a list of virtual environments for a given |
530 Python variant. |
538 Python variant. |