Fri, 08 Sep 2023 09:55:14 +0200
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()