Function
docutils.utils.relative_path

Signature

relative_path(source, target)

Documentation String

Build and return a path to target, relative to source (both files).

If there is no common prefix, return the absolute path to target.