Commit 3f81f2c
committed
Replace
The `pathlib` method expects one path to be the sub path of the other.
The `os.path` function is able to find a relative path even if they
diverge, by adding `../`.
Signed-off-by: Sahas Subramanian <[email protected]>pathlib.Path.relative_to with os.path.relpath
1 parent 2021740 commit 3f81f2c
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
0 commit comments