first_existing_path¶
- emlib.misc.first_existing_path(*paths, default='~')[source]¶
Returns the first path in paths which exists
- Parameters:
*paths (
str
) – the paths to testdefault – a default path returned when all other paths do not exist. It is not checked that this default path exists.
- Return type:
str
- Returns:
the first existing path within the values given