

def get_python_infos(path):
    'Return (version, architecture) for the Python distribution located in\n    *path*. The version number is limited to MAJOR.MINOR, the architecture is\n    an integer: 32 or 64'
    is_64 = python_query('import sys; print(sys.maxsize > 2**32)', path)
    arch = {
        'True': 64,
        'False': 32,
    }.get(is_64, None)
    ver = python_query("import sys; print('%d.%d' % (sys.version_info.major, sys.version_info.minor))", arch)
    if (re.match('([0-9]*)\\.([0-9]*)', ver) is None):
        ver = None
    return (ver, arch)

dataset/ETHPy150Open winpython/winpython/winpython/utils.py get_python_infos/VarMisuse@50/178 `path`->`arch`