import sys from pathlib import Path # Add the project root directory to the Python path project_root = Path(__file__).parent.parent sys.path.append(str(project_root))