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

Method set_python_env_ps

mod/project/python/pyenv_tool.py:1329–1336  ·  view source on GitHub ↗

设置python环境

(self, path: str, ps: str)

Source from the content-addressed store, hash-verified

1327 return None
1328
1329 def set_python_env_ps(self, path: str, ps: str) -> Optional[str]:
1330 """设置python环境"""
1331 pyenv = self.get_env_py_path(path)
1332 if not pyenv:
1333 return "Python环境不存在"
1334 pyenv.ps = ps
1335 EnvironmentReporter().update_report(pyenv.to_dict())
1336 return None
1337
1338
1339 @staticmethod

Callers 1

set_environment_psMethod · 0.95

Calls 4

get_env_py_pathMethod · 0.95
EnvironmentReporterClass · 0.85
update_reportMethod · 0.80
to_dictMethod · 0.45

Tested by

no test coverage detected