The path.rebase function takes a relative path and makes it relative to a different location.
path.rebase("path", "oldbase", "newbase")
Parameters
path is the relative path to conver. oldbase is the original base directory, from with path is relative. newbase is the new base directory, from where the resulting path should be relative.
Return Value
The rebased path.


