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

Method get_conda_path

mod/project/python/pyenv_tool.py:917–923  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

915
916 @staticmethod
917 def get_conda_path() -> List[str]:
918 conda_path = []
919 for i in CondaDetector().find_conda_executable():
920 base_path = i.split("/bin/")[0]
921 envs_path = base_path + "/envs"
922 conda_path.extend([envs_path, base_path])
923 return conda_path
924
925 def is_conda_python(self, python_bin: str) -> bool:
926 if hasattr(self, "_conda_path"):

Callers 1

is_conda_pythonMethod · 0.95

Calls 3

CondaDetectorClass · 0.85
find_conda_executableMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected