diff -r 16a129d168f9 -r 8a15b05eeee3 src/eric7/PipInterface/Pip.py --- a/src/eric7/PipInterface/Pip.py Wed Apr 23 17:23:57 2025 +0200 +++ b/src/eric7/PipInterface/Pip.py Wed Apr 23 18:02:09 2025 +0200 @@ -265,35 +265,24 @@ return interpreter - def getVirtualenvNames( - self, noRemote=False, noConda=False, noGlobals=False, noServer=False - ): + def getVirtualenvNames(self, noGlobals=False, filterList=("all",)): """ Public method to get a sorted list of virtual environment names. - @param noRemote flag indicating to exclude environments for remote - 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) - @param noServer flag indicating to exclued eric-ide server environments - (defaults to False) - @type bool (optional) + @param filterList tuple containing the list of virtual environment types to + be included (prefixed by +) or excluded (prefixed by -) (defaults to + ("all",) ) + @type tuple of str ((optional) @return sorted list of virtual environment names @rtype list of str """ return sorted( ericApp() .getObject("VirtualEnvManager") - .getVirtualenvNames( - noRemote=noRemote, - noConda=noConda, - noGlobals=noGlobals, - noServer=noServer, - ) + .getVirtualenvNames(noGlobals=noGlobals, filterList=filterList) ) def installPip(self, venvName, userSite=False):