confirm_config_file#

skysim.__main__.confirm_config_file(input_config_path)[source]#

Pre-validate the existence of a config file.

Parameters:
input_config_pathstr

Argument passed on command line.

Returns:
pathlib.Path

Given config file path (if any).

Raises:
ValueError

Raised if - Path given does not exist. - Path leads to a non-file object. - Path does not have a “.toml” extension.