Shortcuts

mmengine.utils.is_abs

mmengine.utils.is_abs(path)[source]

Check if path is an absolute path in different backends.

Parameters:

path (str) – path of directory or file.

Returns:

whether path is an absolute path.

Return type:

bool