import sys import os # Ensure the src/ directory is on PYTHONPATH so tests can import the package ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) SRC = os.path.join(ROOT, "src") if SRC not in sys.path: sys.path.insert(0, SRC)