204 self.tr("""No interpreter configured for the selected""" |
204 self.tr("""No interpreter configured for the selected""" |
205 """ virtual environment.""")) |
205 """ virtual environment.""")) |
206 |
206 |
207 return interpreter |
207 return interpreter |
208 |
208 |
209 def getVirtualenvNames(self, noRemote=False): |
209 def getVirtualenvNames(self, noRemote=False, noConda=False): |
210 """ |
210 """ |
211 Public method to get a sorted list of virtual environment names. |
211 Public method to get a sorted list of virtual environment names. |
212 |
212 |
213 @param noRemote flag indicating to exclude environments for remote |
213 @param noRemote flag indicating to exclude environments for remote |
214 debugging |
214 debugging |
215 @type bool |
215 @type bool |
|
216 @param noConda flag indicating to exclude Conda environments |
|
217 @type bool |
216 @return sorted list of virtual environment names |
218 @return sorted list of virtual environment names |
217 @rtype list of str |
219 @rtype list of str |
218 """ |
220 """ |
219 return sorted( |
221 return sorted( |
220 e5App().getObject("VirtualEnvManager").getVirtualenvNames( |
222 e5App().getObject("VirtualEnvManager").getVirtualenvNames( |
221 noRemote=noRemote)) |
223 noRemote=noRemote, noConda=noConda)) |
222 |
224 |
223 def installPip(self, venvName, userSite=False): |
225 def installPip(self, venvName, userSite=False): |
224 """ |
226 """ |
225 Public method to install pip. |
227 Public method to install pip. |
226 |
228 |