|
|
|
**Page author:** @cmoineau
|
|
|
|
|
|
|
|
# Python path
|
|
|
|
|
|
|
|
In order to handle path and files across multiple os, we ask you to use the ``pathlib`` library and to avoid using strings or [os.path](https://docs.python.org/3/library/os.html#module-os).
|
|
|
|
|
|
|
|
You can find in the pathlib documentation a table explaining the equivalent functions with os.path [here](https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module).
|
|
|
|
|
|
|
|
|
|
|
|
As much as possible try to stick to the use of pathlib. As far as I know, the only operations requiring an other library would be to make copies of files using ``shutils`` which is compatible with ``Path`` objects. |