in lambda/source/create_add_on_zip.py [0:0]
def fetchAddonManifestData(productName, sampleAddOnManifestFile):
sampleFile=open(sampleAddOnManifestFile,'r')
sampleFileContent=sampleFile.read()
p=re.compile("ProductName")
addOnFileContent=p.sub(productName, sampleFileContent)
addOnFileBinaryContent=io.BytesIO(bytes(addOnFileContent,'utf-8'))
sampleFile.close()
return (addOn_manifest_filename,addOnFileBinaryContent)