1 2 3 4 5 6
import pathlib TEST_DIR = pathlib.Path(__file__).parent def relpath(*parts): return TEST_DIR / pathlib.Path(*parts)