MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / add_python_paths

Function add_python_paths

etc/scripts/cutedsl_wrapper.py:35–40  ·  view source on GitHub ↗
(raw_paths: str)

Source from the content-addressed store, hash-verified

33
34
35def add_python_paths(raw_paths: str) -> None:
36 if not raw_paths:
37 return
38 for raw_path in reversed(raw_paths.split(os.pathsep)):
39 if raw_path:
40 sys.path.insert(0, raw_path)
41
42
43def patch_runtime_calls() -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected