__init__.py 462 B

1234567891011121314
  1. """Auxiliary / vendored-style scripts under ``thirdparty/``.
  2. Import as ``thirdparty.crop_img``, ``thirdparty.draw_point``. Ensures the repository root is on
  3. ``sys.path`` so the root-level ``routing`` module and other top-level packages resolve correctly.
  4. """
  5. from __future__ import annotations
  6. import sys
  7. from pathlib import Path
  8. _REPO_ROOT = Path(__file__).resolve().parent.parent
  9. if str(_REPO_ROOT) not in sys.path:
  10. sys.path.insert(0, str(_REPO_ROOT))