Added the forgotten conda interface to the virtualenv manager window. eric7

Thu, 24 Apr 2025 12:58:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 24 Apr 2025 12:58:57 +0200
branch
eric7
changeset 11234
438e91847a5a
parent 11233
295366a93bbf
child 11235
b984f0085bed

Added the forgotten conda interface to the virtualenv manager window.

src/eric7/VirtualEnv/VirtualenvManagerWidgets.py file | annotate | diff | comparison | revisions
--- a/src/eric7/VirtualEnv/VirtualenvManagerWidgets.py	Thu Apr 24 12:58:23 2025 +0200
+++ b/src/eric7/VirtualEnv/VirtualenvManagerWidgets.py	Thu Apr 24 12:58:57 2025 +0200
@@ -364,13 +364,14 @@
         }
 
         for environment in self.__manager.getEnvironmentEntries():
+            try:
+                environmentType = typeNamesMapping[environment.environment_type]
+            except KeyError:
+                # Environment type was not registered or has been deactivated.
+                environmentType = environment.environment_type
             itm = QTreeWidgetItem(
                 self.venvList,
-                [
-                    environment.name,
-                    typeNamesMapping[environment.environment_type],
-                    environment.path,
-                ],
+                [environment.name, environmentType, environment.path],
             )
             itm.setData(0, VirtualenvManagerWidget.MetadataRole, environment)
 
@@ -441,6 +442,7 @@
         @type QWidget
         """
         from eric7.EricWidgets.EricApplication import ericApp
+        from eric7.CondaInterface.Conda import Conda
         from eric7.PluginManager.PluginManager import PluginManager
         from eric7.VirtualEnv.VirtualenvManager import VirtualenvManager
 
@@ -453,6 +455,8 @@
         ericApp().registerObject("PluginManager", self.__pluginManager)
         self.__pluginManager.activateTypedPlugins("virtualenv")
 
+        self.__conda = Conda(self)
+
         self.__centralWidget = QWidget(self)
         self.__layout = QVBoxLayout(self.__centralWidget)
         self.__centralWidget.setLayout(self.__layout)

eric ide

mercurial