src/eric7/Preferences/__init__.py

branch
eric7
changeset 10742
7aa41173b44b
parent 10705
3cf0e712488a
child 10746
b8fae72eb04d
--- a/src/eric7/Preferences/__init__.py	Wed Jun 05 17:11:54 2024 +0200
+++ b/src/eric7/Preferences/__init__.py	Thu Jun 06 18:01:54 2024 +0200
@@ -1618,6 +1618,8 @@
     # defaults for pip
     pipDefaults = {
         "PipSearchIndex": "",  # used by the search command
+        "ExcludeGlobalEnvironments": True,
+        # don't show global environments in selector
         "ExcludeCondaEnvironments": True,
         # don't show conda environments in selector
         # defaults for the package vulnerability check
@@ -4024,7 +4026,11 @@
     @return the requested pip value
     @rtype Any
     """
-    if key in ("ExcludeCondaEnvironments", "VulnerabilityCheckEnabled"):
+    if key in (
+        "ExcludeGlobalEnvironments",
+        "ExcludeCondaEnvironments",
+        "VulnerabilityCheckEnabled",
+    ):
         return toBool(Prefs.settings.value("Pip/" + key, Prefs.pipDefaults[key]))
     elif key in ("VulnerabilityDbCacheValidity",):
         return int(Prefs.settings.value("Pip/" + key, Prefs.pipDefaults[key]))

eric ide

mercurial