cleaning.py 文件源码

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

项目:a-file-icon 作者: ihodev 项目源码 文件源码
def run(self):
        log("Cleaning")
        overlay_path = path.get_overlay()
        patches = _get_patches(overlay_path, ".sublime-theme")

        if os.path.exists(overlay_path):
            try:
                for p in patches:
                    os.remove(p)
            except Exception as error:
                log("Error during cleaning")
                dump(error)
            else:
                log("Cleaned up successfully")
                sublime.run_command("afi_patch_themes")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号