[`pathlib`](https://docs.python.org/3.8/library/pathlib.html) is the standard and preferred way to manipulate paths. We should migrate `os.path` calls to `pathlib`. References: - https://docs.python.org/3.8/library/pathlib.html - https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/
Activity
seisman commentedon May 12, 2022
Migrating from
os.pathtopathlib.Pathalso help testing the pathlib support of PyGMT, but before making the changes, we need to address #1912 first.seisman commentedon Dec 19, 2023
We probably want to enable ruff's
PTHrules after we finish the replacements.