from __future__ import annotations import sys from pathlib import Path # Make package importable when tests are run from the workspace root, e.g.: # python -m pytest -q OpenEnv/envs/code_security_auditor_env/tests/test_grader_and_env.py _ENVS_DIR = Path(__file__).resolve().parents[2] if str(_ENVS_DIR) not in sys.path: sys.path.insert(0, str(_ENVS_DIR))