ConfigurationDialog.py: fix to instantiate its own Virtual Environment Manager when it cannot find one.

Tue, 26 Jun 2018 18:38:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Jun 2018 18:38:04 +0200
changeset 6370
0c2dca290df5
parent 6369
09bc694c00bc
child 6371
bc834bbc0251

ConfigurationDialog.py: fix to instantiate its own Virtual Environment Manager when it cannot find one.

Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
diff -r 09bc694c00bc -r 0c2dca290df5 Preferences/ConfigurationDialog.py
--- a/Preferences/ConfigurationDialog.py	Tue Jun 26 18:36:50 2018 +0200
+++ b/Preferences/ConfigurationDialog.py	Tue Jun 26 18:38:04 2018 +0200
@@ -123,6 +123,13 @@
             except KeyError:
                 self.pluginManager = PluginManager(self)
                 e5App().registerObject("PluginManager", self.pluginManager)
+            
+            from VirtualEnv.VirtualenvManager import VirtualenvManager
+            try:
+                self.virtualenvManager = e5App().getObject("VirtualEnvManager")
+            except KeyError:
+                self.virtualenvManager = VirtualenvManager(self)
+                e5App().registerObject("VirtualEnvManager", self.virtualenvManager)
         
         if displayMode == ConfigurationWidget.DefaultMode:
             self.configItems = {

eric ide

mercurial