import zipfile


def _find_shp_path(archive):
    """Find path to .shp file in a .zip archive."""
    with open(archive, 'rb') as src:
        zfile = zipfile.ZipFile(src)
        for member in zfile.infolist():
            if member.filename.endswith('.shp'):
                return member.filename