Jun-11-2021, 02:52 PM
You can also give more complex paths relative to the python file's directory
from pathlib import Path thisdir = Path(__file__).parent csv = thisdir/'..'/'..'/'spam'/'Articles.csv'