(self)
| 1024 | REPORT_FILE = "/www/server/panel/data/python_project_env.json" |
| 1025 | |
| 1026 | def __init__(self): |
| 1027 | _python_manager_path = python_manager_path() |
| 1028 | _pyenv_path = pyenv_path() |
| 1029 | self.detectors = [ |
| 1030 | CondaDetector(), |
| 1031 | VirtualEnvDetector([ |
| 1032 | _pyenv_path, |
| 1033 | _python_manager_path, |
| 1034 | ]), |
| 1035 | SystemPythonDetector([ |
| 1036 | _pyenv_path, |
| 1037 | "{}/versions".format(_pyenv_path), |
| 1038 | "{}/pypy_versions".format(_pyenv_path), |
| 1039 | "{}/versions".format(_python_manager_path), |
| 1040 | ]) |
| 1041 | ] |
| 1042 | |
| 1043 | def generate_report(self) -> Dict: |
| 1044 | report = {"environments": [], "update_time": int(time.time())} |
nothing calls this directly
no test coverage detected