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