src/eric7/PipInterface/Pip.py

branch
eric7
changeset 10742
7aa41173b44b
parent 10740
2f76bfb902bc
child 10766
d35d6f96c24b
--- a/src/eric7/PipInterface/Pip.py	Wed Jun 05 17:11:54 2024 +0200
+++ b/src/eric7/PipInterface/Pip.py	Thu Jun 06 18:01:54 2024 +0200
@@ -245,22 +245,25 @@
 
         return interpreter
 
-    def getVirtualenvNames(self, noRemote=False, noConda=False):
+    def getVirtualenvNames(self, noRemote=False, noConda=False, noGlobals=False):
         """
         Public method to get a sorted list of virtual environment names.
 
         @param noRemote flag indicating to exclude environments for remote
-            debugging
-        @type bool
-        @param noConda flag indicating to exclude Conda environments
-        @type bool
+            debugging (defaults to False)
+        @type bool (optional)
+        @param noConda flag indicating to exclude Conda environments (defaults to False)
+        @type bool (optional)
+        @param noGlobals flag indicating to exclude global environments
+            (defaults to False)
+        @type bool (optional)
         @return sorted list of virtual environment names
         @rtype list of str
         """
         return sorted(
             ericApp()
             .getObject("VirtualEnvManager")
-            .getVirtualenvNames(noRemote=noRemote, noConda=noConda)
+            .getVirtualenvNames(noRemote=noRemote, noConda=noConda, noGlobals=noGlobals)
         )
 
     def installPip(self, venvName, userSite=False):

eric ide

mercurial