def detectHostArchitecture(self):
"""Return the architecture as '386', 'amd64', 'arm32' or 'arm64'."""
out = ''
if platform.machine().lower()[:3] == 'arm':
out += 'arm'
if sys.maxsize > 2 ** 32:
if out == 'arm':
out += '64'
else:
out = 'amd64'
else:
if out == 'arm':
out += '32'
else:
out = '386'
return out
评论列表
文章目录