Browse Source

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

This reverts commit 392911fc62.
gps-1.3.1
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
6eba851b00
  1. 2
      Tools/autotest/pysim/util.py

2
Tools/autotest/pysim/util.py

@ -63,7 +63,7 @@ def relcurdir(path): @@ -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):

Loading…
Cancel
Save