MCPcopy Create free account
hub / github.com/openai/plugins / _load_script

Function _load_script

plugins/codex-security/scripts/report_projection.py:29–36  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

27
28
29def _load_script(name: str) -> ModuleType:
30 path = Path(__file__).resolve().parent / f"{name}.py"
31 spec = importlib.util.spec_from_file_location(f"codex_security_{name}", path)
32 if spec is None or spec.loader is None:
33 raise ReportProjectionError(f"could not load report helper: {path}")
34 module = importlib.util.module_from_spec(spec)
35 spec.loader.exec_module(module)
36 return module
37
38
39def _text(value: Any, fallback: str) -> str:

Callers 1

generate_report_markdownFunction · 0.85

Calls 1

Tested by

no test coverage detected