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

Method __init__

mod/project/python/pyenv_tool.py:1026–1041  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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())}

Callers

nothing calls this directly

Calls 6

python_manager_pathFunction · 0.85
pyenv_pathFunction · 0.85
CondaDetectorClass · 0.85
VirtualEnvDetectorClass · 0.85
formatMethod · 0.45

Tested by

no test coverage detected