def from_archive(archive_path):
    archive = zipfile.ZipFile(archive_path)
    try:
        xml_data = archive.read("package.xml")
    except __HOLE__:
        raise qisys.error.Error("Could not find package.xml in %s" %
                                archive_path)
    element = etree.fromstring(xml_data)
    return from_xml(element)
dataset/ETHPy150Open aldebaran/qibuild/python/qitoolchain/qipackage.py/from_archive