243 ), |
243 ), |
244 ) |
244 ) |
245 |
245 |
246 return interpreter |
246 return interpreter |
247 |
247 |
248 def getVirtualenvNames(self, noRemote=False, noConda=False): |
248 def getVirtualenvNames(self, noRemote=False, noConda=False, noGlobals=False): |
249 """ |
249 """ |
250 Public method to get a sorted list of virtual environment names. |
250 Public method to get a sorted list of virtual environment names. |
251 |
251 |
252 @param noRemote flag indicating to exclude environments for remote |
252 @param noRemote flag indicating to exclude environments for remote |
253 debugging |
253 debugging (defaults to False) |
254 @type bool |
254 @type bool (optional) |
255 @param noConda flag indicating to exclude Conda environments |
255 @param noConda flag indicating to exclude Conda environments (defaults to False) |
256 @type bool |
256 @type bool (optional) |
|
257 @param noGlobals flag indicating to exclude global environments |
|
258 (defaults to False) |
|
259 @type bool (optional) |
257 @return sorted list of virtual environment names |
260 @return sorted list of virtual environment names |
258 @rtype list of str |
261 @rtype list of str |
259 """ |
262 """ |
260 return sorted( |
263 return sorted( |
261 ericApp() |
264 ericApp() |
262 .getObject("VirtualEnvManager") |
265 .getObject("VirtualEnvManager") |
263 .getVirtualenvNames(noRemote=noRemote, noConda=noConda) |
266 .getVirtualenvNames(noRemote=noRemote, noConda=noConda, noGlobals=noGlobals) |
264 ) |
267 ) |
265 |
268 |
266 def installPip(self, venvName, userSite=False): |
269 def installPip(self, venvName, userSite=False): |
267 """ |
270 """ |
268 Public method to install pip. |
271 Public method to install pip. |