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

Function get_platform

Tools/c-analyzer/distutils/util.py:93–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 return "%s-%s-%s" % (osname, release, machine)
92
93def get_platform():
94 if os.name == 'nt':
95 TARGET_TO_PLAT = {
96 'x86' : 'win32',
97 'x64' : 'win-amd64',
98 'arm' : 'win-arm32',
99 }
100 return TARGET_TO_PLAT.get(os.environ.get('VSCMD_ARG_TGT_ARCH')) or get_host_platform()
101 else:
102 return get_host_platform()
103
104
105# Needed by 'split_quoted()'

Callers

nothing calls this directly

Calls 2

get_host_platformFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…