import os import sys from pathlib import Path # Add the backend directory to the Python path sys.path.insert(0, str(Path(__file__).parent / "backend")) sys.path.insert(0, str(Path(__file__).parent))