MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_platform

Function get_platform

tools/python-3.11.9-amd64/Lib/distutils/util.py:99–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 return "%s-%s-%s" % (osname, release, machine)
98
99def get_platform():
100 if os.name == 'nt':
101 TARGET_TO_PLAT = {
102 'x86' : 'win32',
103 'x64' : 'win-amd64',
104 'arm' : 'win-arm32',
105 }
106 return TARGET_TO_PLAT.get(os.environ.get('VSCMD_ARG_TGT_ARCH')) or get_host_platform()
107 else:
108 return get_host_platform()
109
110def convert_path (pathname):
111 """Return 'pathname' as a name that will work on the native filesystem,

Callers 13

initializeMethod · 0.90
initializeMethod · 0.90
build_extClass · 0.90
runMethod · 0.90
buildClass · 0.90
finalize_optionsMethod · 0.90
bdist_dumbClass · 0.90
runMethod · 0.90
bdistClass · 0.90
finalize_optionsMethod · 0.90
test_get_platformMethod · 0.90
test_check_environMethod · 0.90

Calls 2

get_host_platformFunction · 0.70
getMethod · 0.45

Tested by 2

test_get_platformMethod · 0.72
test_check_environMethod · 0.72