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

Method __init__

mod/project/python/serviceMod.py:30–39  ·  view source on GitHub ↗
(self, project_name: str, python_path: str,python_bin:str, project_path: str, user: str,
                 env_list: List[Dict[str, str]], env_file: str)

Source from the content-addressed store, hash-verified

28class Environment(object):
29
30 def __init__(self, project_name: str, python_path: str,python_bin:str, project_path: str, user: str,
31 env_list: List[Dict[str, str]], env_file: str):
32 self.python_path = python_path
33 self.project_path = project_path
34 self.env_list = env_list
35 self.env_file = env_file
36 self.project_name = project_name
37 self.user = user
38 self._env_cache: Optional[str] = None
39 self.pyenv = EnvironmentManager().get_env_py_path(python_bin)
40
41 @classmethod
42 def form_project_conf(cls, project_config: dict) -> Union["Environment", str]:

Callers

nothing calls this directly

Calls 2

EnvironmentManagerClass · 0.90
get_env_py_pathMethod · 0.80

Tested by

no test coverage detected