Zet - How do I read a file by a relative path in python?

How do I read a file by a relative path in python?

From Python 3.8 you can use pathlib

from pathlib import Path

path = Path(__file__).parent / "../data/test.csv"
with path.open() as f:
    test = list(csv.reader(f))

#python