Skip to content

Glossary: Refactoring and Clean Code

pathlib.Path

Also written: Path, __file__, HERE

Python's way to work with file paths. `Path(__file__).parent` gives the folder of the current file, so tests find data files wherever pytest is started.

Where the book teaches it

Related terms

Golden master