check_path_exists#

pybrops.core.error.error_io_python.check_path_exists(path)[source]#

Subroutine to check whether a given path exists. If the path does not exist, raise an FileNotFoundError with a custom error message.

Parameters:

path (str, path-like object) – Path to check.

Return type:

None