save_run_policy

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

save_run_policy(policy: RunPolicy, path: str | Path) → Path[source]

Write a RunPolicy as YAML.

Parameters:
  • policy – The policy to serialise.

  • path – Destination file.

Returns:

The written path.