Thu, 24 Apr 2025 12:58:57 +0200
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)