MCPcopy Index your code
hub / github.com/python/cpython / find_msvcrt

Function find_msvcrt

Lib/ctypes/util.py:34–53  ·  view source on GitHub ↗

Return the name of the VC runtime dll

()

Source from the content-addressed store, hash-verified

32 return None
33
34 def find_msvcrt():
35 """Return the name of the VC runtime dll"""
36 version = _get_build_version()
37 if version is None:
38 # better be safe than sorry
39 return None
40 if version <= 6:
41 clibname = 'msvcrt'
42 elif version <= 13:
43 clibname = 'msvcr%d' % (version * 10)
44 else:
45 # CRT is no longer directly loadable. See issue23606 for the
46 # discussion about alternative approaches.
47 return None
48
49 # If python was built with in debug mode
50 import importlib.machinery
51 if '_d.pyd' in importlib.machinery.EXTENSION_SUFFIXES:
52 clibname += 'd'
53 return clibname+'.dll'
54
55 def find_library(name):
56 if name in ('c', 'm'):

Callers 1

find_libraryFunction · 0.85

Calls 1

_get_build_versionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…