class immp.hook.runner.RunnerHook(name, config, host)

Bases: immp.core.hook.ResourceHook

Virtual hook that handles reading and writing of config from/to a file.


boolTrue if the file will be updated on exit, or False if being used read-only.

load(config, path, writeable)

Initialise the runner with a full config and the file path.

  • config (dict) – Complete parsed config file content.
  • path (str) – Target config file location.
  • writeable (bool) – True if changes to the live config may be written back to the file.

Write the live config out to the target config file, if writing is enabled.