src/eric7/VirtualEnv/VirtualenvManager.py

branch
eric7
changeset 10197
065f520d6b8f
parent 10195
d763674ac9a3
child 10200
7c282bf19646
equal deleted inserted replaced
10196:840f1fa4e4bf 10197:065f520d6b8f
88 # description a description of the environment 88 # description a description of the environment
89 # 89 #
90 for venvName in environments: 90 for venvName in environments:
91 environment = environments[venvName] 91 environment = environments[venvName]
92 environment["name"] = venvName 92 environment["name"] = venvName
93 if ("is_remote" in environment and environment["is_remote"]) or os.access( 93 if environment["is_remote"] or os.access(
94 environment["interpreter"], os.X_OK 94 environment["interpreter"], os.X_OK
95 ): 95 ):
96 if "is_global" not in environment: 96 if "is_global" not in environment:
97 environment["is_global"] = environment["path"] == "" 97 environment["is_global"] = environment["path"] == ""
98 self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict( 98
99 environment 99 self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict(
100 ) 100 environment
101 )
101 102
102 # check, if the interpreter used to run eric is in the environments 103 # check, if the interpreter used to run eric is in the environments
103 defaultPy = PythonUtilities.getPythonExecutable() 104 defaultPy = PythonUtilities.getPythonExecutable()
104 if "{0}.venv{0}".format(os.sep) not in defaultPy: 105 if "{0}.venv{0}".format(os.sep) not in defaultPy:
105 # only check for a non-embedded environment 106 # only check for a non-embedded environment

eric ide

mercurial