__init__.py 文件源码

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

项目:django-lb-workflow 作者: vicalloy 项目源码 文件源码
def copy_template_file(self, src, dest, ctx={}):
        template = self.env.get_template(src)
        template.stream(ctx).dump(dest, encoding='utf-8')
        # Make new file writable.
        if os.access(dest, os.W_OK):
            st = os.stat(dest)
            new_permissions = stat.S_IMODE(st.st_mode) | stat.S_IWUSR
            os.chmod(dest, new_permissions)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号