MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / is_conda_python

Method is_conda_python

mod/project/python/pyenv_tool.py:925–934  ·  view source on GitHub ↗
(self, python_bin: str)

Source from the content-addressed store, hash-verified

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查找

Callers 2

detectMethod · 0.95
find_system_pythonMethod · 0.80

Calls 1

get_conda_pathMethod · 0.95

Tested by

no test coverage detected