Repository navigation
Commit eb068f0
Fix ModuleNotFoundError: swarm_agents / kg_data at eval import time
Same class of bug as PR openai#1094: the CT2038 CPU smoke test runs
`python records/.../train_gpt.py` from the repo root, so the submission
directory is not on sys.path and the sibling swarm_agents.py / kg_data.py
modules fail to import. Both files are already shipped in the submission
folder; this patch prepends the script's own directory to sys.path so
imports resolve regardless of eval-harness CWD.
Verified: py_compile OK on Python 3.10.11, runtime import of both
swarm_agents (VotingMesh, TrainingMetrics) and kg_data (KG_IMPORTANCE_B64)
succeeds when executed from repo root.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 30b555b commit eb068f0
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
0 commit comments