extensions.py 文件源码

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

项目:ronin 作者: tliron 项目源码 文件源码
def __init__(self, inputs=None, include_paths=None, defines=None, library_paths=None, libraries=None):
        """
        :param inputs: input paths; note that these should be *absolute* paths
        :type inputs: [:obj:`basestring` or :obj:`~types.FunctionType`]
        :param include_paths: include paths; note that these should be *absolute* paths
        :type include_paths: [:obj:`basestring` or :obj:`~types.FunctionType`]
        :param defines: defines in a (name, value) tuple format; use None for value if the define
         does not have a value
        :type defines: [(:obj:`basestring` or :obj:`~types.FunctionType`, :obj:`basestring` or
         :obj:`~types.FunctionType`)]
        :param library_paths: include paths; note that these should be *absolute* paths
        :type library_paths: [:obj:`basestring` or :obj:`~types.FunctionType`]
        :param libraries: library names
        :type libraries: [:obj:`basestring` or :obj:`~types.FunctionType`]
        """

        super(ExplicitExtension, self).__init__()
        self.inputs = StrictList(inputs, value_type=(basestring, FunctionType))
        self.include_paths = StrictList(include_paths, value_type=(basestring, FunctionType))
        self.defines = defines or []
        self.library_paths = StrictList(library_paths, value_type=(basestring, FunctionType))
        self.libraries = StrictList(libraries, value_type=(basestring, FunctionType))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号