src/eric7/VirtualEnv/VirtualenvManager.py

branch
eric7
changeset 10200
7c282bf19646
parent 10197
065f520d6b8f
child 10203
56ff5d86807a
--- a/src/eric7/VirtualEnv/VirtualenvManager.py	Sat Sep 09 17:17:11 2023 +0200
+++ b/src/eric7/VirtualEnv/VirtualenvManager.py	Sat Sep 09 17:20:31 2023 +0200
@@ -90,11 +90,11 @@
         for venvName in environments:
             environment = environments[venvName]
             environment["name"] = venvName
-            if environment["is_remote"] or os.access(
-                environment["interpreter"], os.X_OK
-            ):
-                if "is_global" not in environment:
-                    environment["is_global"] = environment["path"] == ""
+            if (
+                environment["is_remote"]
+                or os.access(environment["interpreter"], os.X_OK)
+            ) and "is_global" not in environment:
+                environment["is_global"] = environment["path"] == ""
 
             self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict(
                 environment

eric ide

mercurial