Revert "Tools: update reltopdir function to use relpath()"

This reverts commit 392911fc62.
This commit is contained in:
Peter Barker 2022-02-07 09:11:39 +11:00 committed by Andrew Tridgell
parent ddfef6944b
commit 6eba851b00
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def relcurdir(path):
def reltopdir(path):
"""Return a path relative to topdir()."""
return os.path.relpath(path, topdir())
return os.path.normpath(os.path.join(topdir(), path))
def run_cmd(cmd, directory=".", show=True, output=False, checkfail=True):