

def get_python_long_version(path):
    'Return long version (X.Y.Z) for the Python distribution located in\n    *path*'
    ver = python_query("import sys; print('%d.%d.%d' % (sys.version_info.major, sys.version_info.minor,sys.version_info.micro))", path)
    if (re.match('([0-9]*)\\.([0-9]*)\\.([0-9]*)', ver) is None):
        ver = None
    return ver

dataset/ETHPy150Open winpython/winpython/winpython/utils.py get_python_long_version/original