from __future__ import annotations import sys from pathlib import Path # Asegurar que el directorio raíz del proyecto esté en sys.path para imports como `from application...` ROOT = Path(__file__).resolve().parents[1] root_str = str(ROOT) if root_str not in sys.path: sys.path.insert(0, root_str)