mache.deploy.machine.get_machine_config
- mache.deploy.machine.get_machine_config(*, machine: str | None, machines_path: str | None, platform: str, quiet: bool = False) ConfigParser[source]
Load merged machine config from mache + (optional) target software.
If
machineis notNone, load config from<machine>.cfgfiles in bothmache.machinesand the target software (ifmachines_pathis provided). IfmachineisNone, onlydefault-<platform>.cfgfrom the target software is loaded (ifmachines_pathis provided).- Parameters:
machine – The selected machine name (known to mache) or
None.machines_path – Optional path (absolute or relative to repo root) containing machine config files in ini format (e.g.
polaris/machines). IfNone/empty, onlymache.machinesis used.platform – The platform string to use when
machineisNone, e.g. “linux-64”.quiet – If True, suppress warnings.
- Returns:
config – A
configparser.ConfigParserwith config read in precedence order: mache first, then target software (later files override earlier ones).