Fixed an issue in the refactored virtual environment code. eric7

Fri, 08 Sep 2023 09:55:14 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 08 Sep 2023 09:55:14 +0200
branch
eric7
changeset 10197
065f520d6b8f
parent 10196
840f1fa4e4bf
child 10198
94ab7a21c3ad

Fixed an issue in the refactored virtual environment code.

src/eric7/VirtualEnv/VirtualenvManager.py file | annotate | diff | comparison | revisions
--- a/src/eric7/VirtualEnv/VirtualenvManager.py	Thu Sep 07 17:44:31 2023 +0200
+++ b/src/eric7/VirtualEnv/VirtualenvManager.py	Fri Sep 08 09:55:14 2023 +0200
@@ -90,14 +90,15 @@
         for venvName in environments:
             environment = environments[venvName]
             environment["name"] = venvName
-            if ("is_remote" in environment and environment["is_remote"]) or os.access(
+            if environment["is_remote"] or os.access(
                 environment["interpreter"], os.X_OK
             ):
                 if "is_global" not in environment:
                     environment["is_global"] = environment["path"] == ""
-                self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict(
-                    environment
-                )
+
+            self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict(
+                environment
+            )
 
         # check, if the interpreter used to run eric is in the environments
         defaultPy = PythonUtilities.getPythonExecutable()

eric ide

mercurial