Skip to content

Conversation

@catherinedevlin
Copy link
Contributor

Pathlib is a new(-ish) standard library module (introduced 3.4) that provides a cleaner and more reliable way to handle file paths than the old os.path methods. They bake in OS-safety, adapting to Windows back-slashes and Unix forward-slashes seamlessly. Switching to Pathlib cleans up the code a little and avoids possible Windows problems.

Code by Phil Robare (@versilimidude2)

Catherine Devlin added 2 commits April 24, 2023 14:56
Code by Phil Robare (versilimidude2)
@catherinedevlin catherinedevlin mentioned this pull request Apr 24, 2023
@jackiekazil jackiekazil self-requested a review April 24, 2023 23:00
@jackiekazil jackiekazil merged commit a69f9e7 into mesa:main Apr 25, 2023
@jackiekazil
Copy link
Member

LGTM

rht pushed a commit to rht/mesa-examples that referenced this pull request May 18, 2023
* Use Pathlib

Code by Phil Robare (versilimidude2)

* Add .pre-commit

* ran black

---------

Co-authored-by: Catherine Devlin <[email protected]>
rht pushed a commit that referenced this pull request May 19, 2023
* Use Pathlib

Code by Phil Robare (versilimidude2)

* Add .pre-commit

* ran black

---------

Co-authored-by: Catherine Devlin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants