6.1.28. sphinx.util.relative_path

sphinx.util.relative_path(source, target)[source]

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

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