mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
Tools: update reltopdir function to use relpath()
This commit is contained in:
parent
e6929892e3
commit
392911fc62
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user