(get)
| 81 | |
| 82 | @staticmethod |
| 83 | def add_environment(get): |
| 84 | try: |
| 85 | add_type = get.add_type.strip() |
| 86 | path = get.path.strip() |
| 87 | except: |
| 88 | return json_response(False, '参数错误') |
| 89 | res = EnvironmentManager().add_python_env(add_type, path) |
| 90 | if isinstance(res, str): |
| 91 | return json_response(False, res) |
| 92 | return json_response(True, msg="添加成功") |
| 93 | |
| 94 | @staticmethod |
| 95 | def remove_environment(get): |
nothing calls this directly
no test coverage detected