question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

consider replacing os.path uses with pathlib

See original GitHub issue

The standard python library pathlib makes interactions with paths much easier. We should consider replacing the old os.path with the pathlib functions.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
RomuloSouzacommented, Oct 7, 2020

Hi, @silvasara and I would like to work on this issue. Is this still relevant?

1reaction
wochingecommented, Sep 23, 2021

Feel free to take it @jps12 I’d suggest to split up in multiple pieces to make it easier to review e.g. doing < 200 lines of diff and then do a PR to the repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why You Should Start Using Pathlib as an Alternative ...
To do this, I typically use the os.path Python module to perform operations such as joining paths, checking the content of a directory, ......
Read more >
Migrating from OS.PATH to PATHLIB Module in Python
In this article, I will go over the most frequent tasks related to file paths and show how you can refactor the old...
Read more >
Is pathlib a viable replacement for os.path?
I think yes, pathlib can completely replace os.path, and using os.path has a taste of backward compatibility!
Read more >
pathlib — Object-oriented filesystem paths
PEP 428: The pathlib module – object-oriented filesystem paths. See also. For low-level path manipulation on strings, you can also use the os.path...
Read more >
Why you should be using pathlib
Python's classic os.path module is just for working with paths. Once you want to actually do something with a path (e.g. create a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found