mirror of
https://github.com/openai/codex.git
synced 2026-04-28 08:34:54 +00:00
Description: - pin datamodel-code-generator to an exact version and invoke it through the active interpreter - make generate_types own the maintained generated surfaces and regenerate committed artifacts - make sdk/python tests hermetic and regeneration checks idempotent
11 lines
198 B
Python
11 lines
198 B
Python
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
SRC = ROOT / "src"
|
|
|
|
if str(SRC) not in sys.path:
|
|
sys.path.insert(0, str(SRC))
|