__init__.py 524 B

1234567891011121314151617181920212223
  1. from __future__ import annotations
  2. __version__ = "0.7.0"
  3. from logging import WARNING, getLogger
  4. from pathlib import Path
  5. # See https://github.com/princeton-nlp/SWE-agent/issues/585
  6. getLogger("datasets").setLevel(WARNING)
  7. getLogger("numexpr.utils").setLevel(WARNING)
  8. PACKAGE_DIR = Path(__file__).resolve().parent
  9. assert PACKAGE_DIR.is_dir()
  10. REPO_ROOT = PACKAGE_DIR.parent
  11. assert REPO_ROOT.is_dir()
  12. CONFIG_DIR = PACKAGE_DIR.parent / "config"
  13. assert CONFIG_DIR.is_dir()
  14. __all__ = [
  15. "PACKAGE_DIR",
  16. "CONFIG_DIR",
  17. ]