first_existing_path¶
- emlib.misc.first_existing_path(*paths)[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|None- Returns:
the first existing path within the values given, None if no match was found