import sys from pathlib import Path _root = Path(__file__).resolve().parent.parent sys.path.insert(0, str(_root))