hydromt_sfincs.components.config.SfincsConfig.get_set_file_variable#

SfincsConfig.get_set_file_variable(key: str, value: str | Path = None, default: str = None) Path[source]#

Return the absolute file path for a given ‘key’. If ‘value’ is provided, it is used and saved to config; otherwise, retrieves from config or uses default.

Parameters:#

key: str

The config key, e.g., “obsfile”

value: str | Path, optional

Provided file name or path

default: str, optional

Default file name to use if no config value is found

Returns:#

Path: Absolute file path (not checked for existence)