import sys from pathlib import Path # Add the python directory to sys.path for imports python_dir = Path(__file__).parent sys.path.insert(0, str(python_dir))