src/eric7/VirtualEnv/VirtualenvMeta.py

branch
server
changeset 10725
51fe971610d3
parent 10439
21c28b0f9e41
child 10765
b0632e55ec9a
equal deleted inserted replaced
10724:6299dec09231 10725:51fe971610d3
22 is_global: bool = False # flag indicating a global environment 22 is_global: bool = False # flag indicating a global environment
23 is_conda: bool = False # flag indicating an Anaconda environment 23 is_conda: bool = False # flag indicating an Anaconda environment
24 is_remote: bool = False # flag indicating a remotely accessed environment 24 is_remote: bool = False # flag indicating a remotely accessed environment
25 exec_path: str = "" # string to be prefixed to the PATH environment setting 25 exec_path: str = "" # string to be prefixed to the PATH environment setting
26 description: str = "" # description of the environment 26 description: str = "" # description of the environment
27 is_eric_server: bool = False # flag indicating an eric IDE server environment
28 eric_server: str = "" # server name the environment belongs to
27 29
28 def as_dict(self): 30 def as_dict(self):
29 """ 31 """
30 Public method to convert the metadata into a dictionary. 32 Public method to convert the metadata into a dictionary.
31 33
51 is_global=data.get("is_global", False), 53 is_global=data.get("is_global", False),
52 is_conda=data.get("is_conda", False), 54 is_conda=data.get("is_conda", False),
53 is_remote=data.get("is_remote", False), 55 is_remote=data.get("is_remote", False),
54 exec_path=data.get("exec_path", ""), 56 exec_path=data.get("exec_path", ""),
55 description=data.get("description", ""), 57 description=data.get("description", ""),
58 is_eric_server=data.get("is_eric_server", False),
59 eric_server=data.get("eric_server", ""),
56 ) 60 )

eric ide

mercurial