4

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?

Boris Verkhovskiy
  • 14,854
  • 11
  • 100
  • 103
  • 2
    Manual job. APIs are totally different - no way to automatically do that. – wim Oct 04 '19 at 21:12
  • 1
    @wim yea, I know. I'm more just hoping someone will answer this question in 5 years, before it gets closed as off-topic for asking for a tool – Boris Verkhovskiy Oct 04 '19 at 21:16

0 Answers0