test_translations.py 文件源码

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

项目:hotface 作者: linhanqiuinc24 项目源码 文件源码
def _remove_compiled_translations():
    translations_folder = os.path.join(current_app.root_path, "translations")

    # walks through the translations folder and deletes all files
    # ending with .mo
    for root, dirs, files in os.walk(translations_folder):
        for name in files:
            if name.endswith(".mo"):
                os.unlink(os.path.join(root, name))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号