src/eric7/PipInterface/Pip.py

branch
server
changeset 10766
d35d6f96c24b
parent 10742
7aa41173b44b
child 10799
7f5228900da5
diff -r b0632e55ec9a -r d35d6f96c24b src/eric7/PipInterface/Pip.py
--- a/src/eric7/PipInterface/Pip.py	Mon Jun 10 10:22:23 2024 +0200
+++ b/src/eric7/PipInterface/Pip.py	Mon Jun 10 11:41:34 2024 +0200
@@ -245,7 +245,9 @@
 
         return interpreter
 
-    def getVirtualenvNames(self, noRemote=False, noConda=False, noGlobals=False):
+    def getVirtualenvNames(
+        self, noRemote=False, noConda=False, noGlobals=False, noServer=False
+    ):
         """
         Public method to get a sorted list of virtual environment names.
 
@@ -257,13 +259,21 @@
         @param noGlobals flag indicating to exclude global environments
             (defaults to False)
         @type bool (optional)
+        @param noServer flag indicating to exclued eric-ide server 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, noGlobals=noGlobals)
+            .getVirtualenvNames(
+                noRemote=noRemote,
+                noConda=noConda,
+                noGlobals=noGlobals,
+                noServer=noServer,
+            )
         )
 
     def installPip(self, venvName, userSite=False):

eric ide

mercurial