def set_info(self, k, v):
"""
Set a value for a given key in an app's base project info.plist
"""
info = self.get_info()
with open(self.info, 'wb') as f:
# Note that we have to write the entire contents to the file.
# so we load the current data, add whatever we need to it then
info[k] = v
plistlib.dump(info, f)
评论列表
文章目录