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

Method get_env_py_path

mod/project/python/pyenv_tool.py:1137–1147  ·  view source on GitHub ↗
(self, python_path: str)

Source from the content-addressed store, hash-verified

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:

Callers 14

init_reportMethod · 0.95
set_python2envMethod · 0.95
set_python_env_psMethod · 0.95
create_python_envMethod · 0.95
__check_argsMethod · 0.95
RemoveProjectMethod · 0.95
__init__Method · 0.80
simple_prep_envMethod · 0.80
__prepare_start_confMethod · 0.80
_get_project_stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected