MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / _get_prerequisites

Function _get_prerequisites

pipcl.py:2988–3001  ·  view source on GitHub ↗

Returns list of prerequisites from Makefile-style dependency file, e.g. created by `cc -MD -MF `.

(path)

Source from the content-addressed store, hash-verified

2986
2987
2988def _get_prerequisites(path):
2989 '''
2990 Returns list of prerequisites from Makefile-style dependency file, e.g.
2991 created by `cc -MD -MF <path>`.
2992 ''&#x27;
2993 ret = list()
2994 if os.path.isfile(path):
2995 with open(path) as f:
2996 for line in f:
2997 for item in line.split():
2998 if item.endswith( (':', '\\')):
2999 continue
3000 ret.append( item)
3001 return ret
3002
3003
3004def _fs_mtime_newest( path):

Callers 1

build_extensionFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…