Tools: update reltopdir function to use relpath()

This commit is contained in:
Willian Galvani 2022-01-25 18:26:51 -03:00 committed by Peter Barker
parent e6929892e3
commit 392911fc62

View File

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