install_lib.py 文件源码

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

项目:news-for-good 作者: thecodinghub 项目源码 文件源码
def _gen_exclusion_paths():
        """
        Generate file paths to be excluded for namespace packages (bytecode
        cache files).
        """
        # always exclude the package module itself
        yield '__init__.py'

        yield '__init__.pyc'
        yield '__init__.pyo'

        if not hasattr(imp, 'get_tag'):
            return

        base = os.path.join('__pycache__', '__init__.' + imp.get_tag())
        yield base + '.pyc'
        yield base + '.pyo'
        yield base + '.opt-1.pyc'
        yield base + '.opt-2.pyc'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号