MCPcopy Create free account
hub / github.com/numpy/numpy / _find_dll_in_path

Function _find_dll_in_path

numpy/distutils/mingw32ccompiler.py:272–278  ·  view source on GitHub ↗
(dll_name)

Source from the content-addressed store, hash-verified

270 return None
271
272 def _find_dll_in_path(dll_name):
273 # First, look in the Python directory, then scan PATH for
274 # the given dll name.
275 for path in [sys.prefix] + os.environ['PATH'].split(';'):
276 filepath = os.path.join(path, dll_name)
277 if os.path.exists(filepath):
278 return os.path.abspath(filepath)
279
280 return _find_dll_in_winsxs(dll_name) or _find_dll_in_path(dll_name)
281

Callers 1

find_dllFunction · 0.85

Calls 4

splitMethod · 0.45
joinMethod · 0.45
existsMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected