import sys from pathlib import Path ROOT = Path(__file__).resolve().parent.parent if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) REPO_ROOT = ROOT.parent.parent if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT))