def addResourceToFile(self, filename): addResourceToFile( target_filename=filename, data=TreeXML.toBytes(self.tree), resource_kind=RT_MANIFEST, res_name=1, lang_id=0, )
def addResourceToFile(self, filename, logger): manifest_data = TreeXML.toBytes(self.tree, indent=False) addResourceToFile( target_filename=filename, data=manifest_data, resource_kind=RT_MANIFEST, res_name=1, lang_id=0, logger=logger, )