MCPcopy
hub / github.com/pyodide/pyodide / cache_dir

Function cache_dir

tools/pytest_wrapper.py:18–24  ·  view source on GitHub ↗

Find the name of the cache-dir in the argument list

(args: list[str])

Source from the content-addressed store, hash-verified

16
17
18def cache_dir(args: list[str]) -> None:
19 """Find the name of the cache-dir in the argument list"""
20 for i in range(0, len(args)):
21 if args[i] == "-o" and args[i + 1].startswith("cache_dir"):
22 return args[i + 1].split("=")[1]
23 break
24 return ".pytest_cache"
25
26
27if __name__ == "__main__":

Callers 1

pytest_wrapper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…