src/eric7/VirtualEnv/VirtualenvManager.py

branch
eric7
changeset 10200
7c282bf19646
parent 10197
065f520d6b8f
child 10203
56ff5d86807a
equal deleted inserted replaced
10199:2cd5ff8e0e0f 10200:7c282bf19646
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 environment["is_remote"] or os.access( 93 if (
94 environment["interpreter"], os.X_OK 94 environment["is_remote"]
95 ): 95 or os.access(environment["interpreter"], os.X_OK)
96 if "is_global" not in environment: 96 ) and "is_global" not in environment:
97 environment["is_global"] = environment["path"] == "" 97 environment["is_global"] = environment["path"] == ""
98 98
99 self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict( 99 self.__virtualEnvironments[venvName] = VirtualenvMetaData.from_dict(
100 environment 100 environment
101 ) 101 )
102 102

eric ide

mercurial