idea151-aidmesh-federated-p.../tests/conftest.py

9 lines
235 B
Python

import os
import sys
# Ensure the local src/ package is on PYTHONPATH for tests
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)