设置python环境
(self, path: str, ps: str)
| 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 |
no test coverage detected