MCPcopy Create free account
hub / github.com/openai/openai-agents-python / build_python_path

Function build_python_path

examples/run_examples.py:220–224  ·  view source on GitHub ↗
(base_path: str | None = None)

Source from the content-addressed store, hash-verified

218
219
220def build_python_path(base_path: str | None = None) -> str:
221 candidates = [str(ROOT_DIR)]
222 if base_path:
223 candidates.extend(split_path_entries(base_path))
224 return os.pathsep.join(dedupe_existing_paths(candidates))
225
226
227def choose_loopback_port() -> int:

Callers 1

run_singleFunction · 0.85

Calls 2

split_path_entriesFunction · 0.85
dedupe_existing_pathsFunction · 0.85

Tested by

no test coverage detected