xcp_d.utils.filemanip.relpath

xcp_d.utils.filemanip.relpath(path, start=None)[source]

Return a relative version of a path.

Parameters:
  • path (str) – Path to reformat.

  • start (None or str, optional) – The starting location for the relative path. If None, use the current working directory. Default is None.

Returns:

Relative version of the path.

Return type:

str