Open rth opened 1 year ago
This package does a lot of path manipulations, and it would be nice to use pathlib.Path more. See https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/ for motivation of using pathlib.
This is particularly useful in combination with typing #316 since path then would be of type Path instead of str. The code would also be much sorter (less of os.path.join everywhere) and more readable.
Path
os.path.join
A potential maintenance task cc @SofianChay
I second it.
This package does a lot of path manipulations, and it would be nice to use pathlib.Path more. See https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/ for motivation of using pathlib.
This is particularly useful in combination with typing #316 since path then would be of type
Path
instead of str. The code would also be much sorter (less ofos.path.join
everywhere) and more readable.A potential maintenance task cc @SofianChay