示例#1
0
def from_archive(archive_path):
    archive = zipfile.ZipFile(archive_path)
    xml_data = archive.read("package.xml")
    element = etree.fromstring(xml_data)
    return from_xml(element)
示例#2
0
文件: package.py 项目: mikalv/qibuild
def name_from_archive(archive_path):
    archive = zipfile.ZipFile(archive_path)
    xml_data = archive.read("manifest.xml")
    elem = etree.fromstring(xml_data)
    return elem.get("uuid")
示例#3
0
def from_archive(archive_path):
    """ Load a Package from an Archive """
    archive = zipfile.ZipFile(archive_path, allowZip64=True)
    xml_data = archive.read("package.xml")
    element = etree.fromstring(xml_data)
    return from_xml(element)
示例#4
0
def from_archive(archive_path):
    archive = zipfile.ZipFile(archive_path)
    xml_data = archive.read("package.xml")
    element = etree.fromstring(xml_data)
    return from_xml(element)
示例#5
0
def from_archive(archive_path):
    """ Load a Package from an Archive """
    archive = zipfile.ZipFile(archive_path, allowZip64=True)
    xml_data = archive.read("package.xml")
    element = etree.fromstring(xml_data)
    return from_xml(element)
示例#6
0
def name_from_archive(archive_path):
    """ Name From Archive """
    archive = zipfile.ZipFile(archive_path, allowZip64=True)
    xml_data = archive.read("manifest.xml")
    elem = etree.fromstring(xml_data)
    return elem.get("uuid")
示例#7
0
文件: package.py 项目: Mhalla/qibuild
def name_from_archive(archive_path):
    archive = zipfile.ZipFile(archive_path)
    xml_data = archive.read("manifest.xml")
    elem = etree.fromstring(xml_data)
    return elem.get("uuid")
示例#8
0
def name_from_archive(archive_path):
    """ Name From Archive """
    archive = zipfile.ZipFile(archive_path, allowZip64=True)
    xml_data = archive.read("manifest.xml")
    elem = etree.fromstring(xml_data)
    return elem.get("uuid")