Environmentο
- class honda.config.env.EnvironmentConfig(search_path: Optional[Sequence[str]] = None, home: str = '', path: str = '', shell: str = '', is_windows: bool = False, conda_root: str = '', conda_prefix: str = '', conda_exe: str = '', conda_python_exe: str = '', conda_shlvl: int = 1, conda_default_env: int = '', condarc: str = '', xdg_config_home: str = '', user_rc_path: pathlib.Path = PosixPath('/home/docs/.condarc'), sys_rc_path: pathlib.Path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/honda/envs/latest/.condarc'))ο
This is the main configuration object. It stores all configuration for the program. This configuration comes from a mix of environment variables and config files.
- property compatible_shells: Sequence[str]ο
Depending on which OS is currently configured, weβll want to display different shells
- conda_default_env: intο
Name of the default environment (currently activated one)
- conda_exe: strο
Path to the currently configured conda executable
- conda_prefix: strο
Full path to the current active environment
- conda_python_exe: strο
Path to the currently configured conda python executable
- conda_root: strο
Full path to your base conda install (not sure this is actually used)
- conda_shlvl: intο
Path to the currently configured conda python executable
- condarc: strο
Override and point to a specific condarc file
- property default_channels: Sequence[str]ο
We differ the default channels that configured depending on OS type
- home: strο
Users HOME directory
- is_windows: boolο
Determines whether we are running on Windows or not
- path: strο
Users PATH variable
- property platform: strο
Grab the platform we are using (wrapper around platform module)
- search_path: Sequence[str]ο
Search path which determines where we find multiple condarc confiugrations
- shell: strο
Shell the user is current running
- sys_rc_path: pathlib.Pathο
Default path for system .condarc file
- user_rc_path: pathlib.Pathο
Default path userβs .condarc file
- property valid_condarc_files: Sequence[pathlib.Path]ο
Using the search_path property, return a list of condarc files which actually existβ
- TODO: maybe cache this? This environment config is mutable, but I donβt expect consumers
to change anything after __post_init__ has run.
- xdg_config_home: strο
???? Not sure about this one
- honda.config.env.get_search_path_from_config(config: honda.config.env.EnvironmentConfig) Sequence[str]ο
Uses config parameters to determine the search path.