mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
Revert "Tools: update reltopdir function to use relpath()"
This reverts commit 392911fc62
.
This commit is contained in:
parent
ddfef6944b
commit
6eba851b00
@ -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…
Reference in New Issue
Block a user