src/eric7/Preferences/__init__.py

branch
server
changeset 10746
b8fae72eb04d
parent 10707
3df56b1c9570
parent 10742
7aa41173b44b
child 10806
2f6df822e3b9
diff -r 37101524dd76 -r b8fae72eb04d src/eric7/Preferences/__init__.py
--- a/src/eric7/Preferences/__init__.py	Mon Jun 03 19:43:09 2024 +0200
+++ b/src/eric7/Preferences/__init__.py	Fri Jun 07 10:50:23 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
@@ -4031,7 +4033,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