(p1, p2)
| 893 | return commonpath(l1[1:], l2[1:], common+[l1[0]]) |
| 894 | |
| 895 | def relpath(p1, p2): |
| 896 | (common,l1,l2) = commonpath(split(p1), split(p2)) |
| 897 | p = [] |
| 898 | if len(l1) > 0: |
| 899 | p = [ '../' * len(l1) ] |
| 900 | p = p + l2 |
| 901 | if p: |
| 902 | return os.path.join( *p ) |
| 903 | else: |
| 904 | return "." |
nothing calls this directly
no test coverage detected