ghpu.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:Indigo-August-Home 作者: mlamoure 项目源码 文件源码
def _readPluginInfoFromArchive(self, zipfile):
        topdir = zipfile.namelist()[0]

        # read and the plugin info contained in the zipfile
        plistFile = os.path.join(topdir, self.path, 'Contents', 'Info.plist')
        self.logger.debug('Reading plugin info: %s' % plistFile)

        plistData = zipfile.read(plistFile)
        if (plistData == None):
            raise Exception('Unable to read new plugin info')

        plist = plistlib.readPlistFromString(plistData)

        return self._buildPluginInfo(plist)

    #---------------------------------------------------------------------------
    # verifies the provided plugin info matches what we expect
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号