def is_python_distribution(path):
    # XXX: This test could be improved but it seems to be sufficient
    return osp.isfile(osp.join(path, 'python.exe'))\
           and osp.isdir(osp.join(path, 'Lib', 'site-packages'))


# =============================================================================
# Shell, Python queries
# =============================================================================
Return True if path is a Python distribution
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/is_python_distribution