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
评论列表
文章目录