How do I automatically convert code using os.path to use pathlib?

Viewed 85

I have some code that uses os.path.join and all the other os.path methods. How can I convert it to use pathlib.Path objects everywhere.

Is there a more efficient way than grepping for os.path and changing every instance?

0 Answers
Related