(self, python_bin: str)
| 923 | return conda_path |
| 924 | |
| 925 | def is_conda_python(self, python_bin: str) -> bool: |
| 926 | if hasattr(self, "_conda_path"): |
| 927 | _conda_path = self._conda_path |
| 928 | else: |
| 929 | _conda_path = self.get_conda_path() |
| 930 | setattr(self, "_conda_path", _conda_path) |
| 931 | for i in _conda_path: |
| 932 | if python_bin.startswith(i): |
| 933 | return True |
| 934 | return False |
| 935 | |
| 936 | def detect(self) -> List[PythonEnvironment]: |
| 937 | # 新增:从系统PATH查找 |
no test coverage detected