22 is_global: bool = False # flag indicating a global environment |
22 is_global: bool = False # flag indicating a global environment |
23 environment_type: str = "standard" # virtual environment type |
23 environment_type: str = "standard" # virtual environment type |
24 exec_path: str = "" # string to be prefixed to the PATH environment setting |
24 exec_path: str = "" # string to be prefixed to the PATH environment setting |
25 description: str = "" # description of the environment |
25 description: str = "" # description of the environment |
26 eric_server: str = "" # server name the environment belongs to |
26 eric_server: str = "" # server name the environment belongs to |
|
27 available: bool = True # flag indicating an available virtual environment |
27 meta_version: int = 2 # version number of the meta data structure |
28 meta_version: int = 2 # version number of the meta data structure |
28 |
29 |
29 def as_dict(self): |
30 def as_dict(self): |
30 """ |
31 """ |
31 Public method to convert the metadata into a dictionary. |
32 Public method to convert the metadata into a dictionary. |
63 is_global=data.get("is_global", False), |
64 is_global=data.get("is_global", False), |
64 environment_type=data.get("environment_type", "standard"), |
65 environment_type=data.get("environment_type", "standard"), |
65 exec_path=data.get("exec_path", ""), |
66 exec_path=data.get("exec_path", ""), |
66 description=data.get("description", ""), |
67 description=data.get("description", ""), |
67 eric_server=data.get("eric_server", ""), |
68 eric_server=data.get("eric_server", ""), |
|
69 available=data.get("available", True), |
68 ) |
70 ) |