eric6/VirtualEnv/VirtualenvManager.py

changeset 7726
b1ade4fcf05f
parent 7635
0cdead130a81
child 7759
51aa6c6b66f7
diff -r 2648f2c894df -r b1ade4fcf05f eric6/VirtualEnv/VirtualenvManager.py
--- a/eric6/VirtualEnv/VirtualenvManager.py	Wed Sep 30 19:33:21 2020 +0200
+++ b/eric6/VirtualEnv/VirtualenvManager.py	Wed Sep 30 19:34:11 2020 +0200
@@ -524,13 +524,15 @@
         else:
             return ""
     
-    def getVirtualenvNames(self, noRemote=False):
+    def getVirtualenvNames(self, noRemote=False, noConda=False):
         """
         Public method to get a list of defined virtual environments.
         
         @param noRemote flag indicating to exclude environments for remote
             debugging
         @type bool
+        @param noConda flag indicating to exclude Conda environments
+        @type bool
         @return list of defined virtual environments
         @rtype list of str
         """
@@ -538,6 +540,9 @@
         if noRemote:
             environments = [name for name in environments
                             if not self.isRemoteEnvironment(name)]
+        if noConda:
+            environments = [name for name in environments
+                            if not self.isCondaEnvironment(name)]
         
         return environments
     

eric ide

mercurial