MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_standard_lib_path

Function _is_standard_lib_path

scripts/update_lib/deps.py:1349–1358  ·  view source on GitHub ↗

Check if path is the standard Lib directory (not a temp dir).

(path: str)

Source from the content-addressed store, hash-verified

1347
1348
1349def _is_standard_lib_path(path: str) -> bool:
1350 """Check if path is the standard Lib directory (not a temp dir)."""
1351 if "/tmp" in path.lower() or "/var/folders" in path.lower():
1352 return False
1353 return (
1354 path == "Lib/test"
1355 or path.endswith("/Lib/test")
1356 or path == "Lib"
1357 or path.endswith("/Lib")
1358 )
1359
1360
1361def _build_test_import_graph(

Callers 2

_build_test_import_graphFunction · 0.85
_build_lib_import_graphFunction · 0.85

Calls 2

lowerMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected