config.py 文件源码

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

项目:radar 作者: amoose136 项目源码 文件源码
def _wrap_method(self, mth, lang, args):
        from distutils.ccompiler import CompileError
        from distutils.errors import DistutilsExecError
        save_compiler = self.compiler
        if lang in ['f77', 'f90']:
            self.compiler = self.fcompiler
        try:
            ret = mth(*((self,)+args))
        except (DistutilsExecError, CompileError):
            msg = str(get_exception())
            self.compiler = save_compiler
            raise CompileError
        self.compiler = save_compiler
        return ret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号