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 machine is not None, load config from <machine>.cfg files in both mache.machines and the target software (if machines_path is provided). If machine is None, only default-<platform>.cfg from the target software is loaded (if machines_path is 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). If None/empty, only mache.machines is used.

  • platform – The platform string to use when machine is None, e.g. “linux-64”.

  • quiet – If True, suppress warnings.

Returns:

config – A configparser.ConfigParser with config read in precedence order: mache first, then target software (later files override earlier ones).