gwpopulation_pipe.utils.get_path_or_local

get_path_or_local(path: str) str[source]

Check if a path exists, if not check if the basename exists, if not raise an error.

Parameters:
path: str

The path to check.

Returns:
path: str

The path to use.

Raises:
ValueError

If neither the path nor the basename exist.