Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pathlib instead of os.path #343

Open
pranasziaukas opened this issue Jul 21, 2023 · 0 comments
Open

Use pathlib instead of os.path #343

pranasziaukas opened this issue Jul 21, 2023 · 0 comments

Comments

@pranasziaukas
Copy link
Contributor

import os.path as Path

Starting with python 3.4, pathlib became - to the best of my knowledge - the de facto way of handling paths in an object-oriented way.

While we will not be able to simply replace the above with

from pathlib import Path

without breaking anything, there is a somewhat of an official migration guide at https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module

Originally posted by @pranasziaukas in #326 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant