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 |