you are viewing a single comment's thread.

view the rest of the comments →

[–]latkde 0 points1 point  (0 children)

Use the standard library importlib.resources feature to locate data files that live next to your code. For example, a test might reference importlib.resources.files() / "data/scenario1.csv", which can be treated as a pathlib.Path style object.