Download sdk/python/tests/conftest.py from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/sdk/python/tests/conftest.py
- Command line
-
hf download hf://SaylorTwift/codex/sdk/python/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/SaylorTwift/codex/resolve/main/sdk/python/tests/conftest.py
393 Bytes
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| SRC = ROOT / "src" | |
| src_str = str(SRC) | |
| if src_str in sys.path: | |
| sys.path.remove(src_str) | |
| sys.path.insert(0, src_str) | |
| for module_name in list(sys.modules): | |
| if module_name == "openai_codex" or module_name.startswith("openai_codex."): | |
| sys.modules.pop(module_name) | |