(self, python_path: str)
| 1135 | return self._all_env |
| 1136 | |
| 1137 | def get_env_py_path(self, python_path: str) -> Optional[PythonEnvironment]: |
| 1138 | python_path = python_path.rstrip("/") |
| 1139 | for tmp_p in self.all_env: |
| 1140 | if tmp_p.bin_path == python_path: |
| 1141 | return tmp_p |
| 1142 | # 兼容旧版本 |
| 1143 | if python_path.startswith("/www/server/pyporject_evn/"): |
| 1144 | for tmp_p in self.all_env: |
| 1145 | if tmp_p.bin_path.startswith(python_path) and tmp_p.env_type == "system": |
| 1146 | return tmp_p |
| 1147 | return None |
| 1148 | |
| 1149 | @staticmethod |
| 1150 | def load_report() -> Dict: |
no outgoing calls
no test coverage detected