eric6/PipInterface/PipPackagesWidget.py

changeset 7726
b1ade4fcf05f
parent 7641
21ea4fd50b0a
child 7759
51aa6c6b66f7
diff -r 2648f2c894df -r b1ade4fcf05f eric6/PipInterface/PipPackagesWidget.py
--- a/eric6/PipInterface/PipPackagesWidget.py	Wed Sep 30 19:33:21 2020 +0200
+++ b/eric6/PipInterface/PipPackagesWidget.py	Wed Sep 30 19:34:11 2020 +0200
@@ -27,6 +27,7 @@
 
 import UI.PixmapCache
 import Globals
+import Preferences
 
 
 class PipPackagesWidget(QWidget, Ui_PipPackagesWidget):
@@ -136,7 +137,11 @@
         if projectVenv:
             self.environmentsComboBox.addItem(projectVenv)
         self.environmentsComboBox.addItems(
-            self.__pip.getVirtualenvNames(noRemote=True))
+            self.__pip.getVirtualenvNames(
+                noRemote=True,
+                noConda=Preferences.getPip("ExcludeCondaEnvironments")
+            )
+        )
     
     def __isPipAvailable(self):
         """

eric ide

mercurial