Build.py 文件源码

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

项目:SoCFoundationFlow 作者: mattaw 项目源码 文件源码
def do_install(self, src, tgt, **kw):
        """See :py:meth:`waflib.Build.InstallContext.do_install`"""
        if not self.progress_bar:
            Logs.info('- remove %s' % tgt)

        self.uninstall.append(tgt)
        try:
            os.remove(tgt)
        except OSError as e:
            if e.errno != errno.ENOENT:
                if not getattr(self, 'uninstall_error', None):
                    self.uninstall_error = True
                    Logs.warn('build: some files could not be uninstalled (retry with -vv to list them)')
                if Logs.verbose > 1:
                    Logs.warn('Could not remove %s (error code %r)' % (e.filename, e.errno))

        self.rm_empty_dirs(tgt)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号