Skip to main content

utils.paths

relativize_path

def relativize_path(path: str, root: str) -> str

Makes path relative to root, but keeps the new path absolute.

Arguments:

  • path - The full path.
  • root - The root path.

Returns:

The relative-absolute path.