util.py 文件源码

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

项目:ci_scripts 作者: twotwo 项目源码 文件源码
def update_index_html(self, ipa_name, url_base):
        # read .plist on self.base_dir
        plist_array = []
        for f in os.listdir(self.base_dir):
            if f.endswith('.plist') : plist_array.append(f)

        # update content
        content = PlistBuddy.html_head % ipa_name
        plist_array.sort(reverse=True)
        for f in plist_array:
            content = content + PlistBuddy.plist_link % (os.path.join(url_base, f) , os.path.splitext(f)[0])

        content = content + PlistBuddy.html_tail
        open(os.path.join(self.base_dir,'index.html'), 'w').write(content)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号