Skip to content

Commit e66ba69

Browse files
authored
Merge pull request #4615 from huangruiteng/codex/extension-entrypoint-smoke-bootstrap-20260917
test(extensions): give the entrypoint smoke the repository import bootstrap
2 parents 090be98 + b49abe4 commit e66ba69

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎examples/extension-entrypoint-surface-smoke.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@
1111

1212
from __future__ import annotations
1313

14+
import sys
1415
from pathlib import Path
1516

16-
from loopx.extensions.entrypoint_surface import (
17+
ROOT = Path(__file__).resolve().parents[1]
18+
if str(ROOT) not in sys.path:
19+
sys.path.insert(0, str(ROOT))
20+
21+
from loopx.extensions.entrypoint_surface import ( # noqa: E402
1722
EntrypointKind,
1823
render_report,
1924
resolve_declared_entrypoints,
2025
)
2126

2227

23-
ROOT = Path(__file__).resolve().parents[1]
24-
2528
EXPECTED_KINDS = frozenset(kind.value for kind in EntrypointKind)
2629

2730
REQUIRED_KINDS = (

0 commit comments

Comments
 (0)