optim.py 文件源码

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

项目:SoCFoundationFlow 作者: mattaw 项目源码 文件源码
def read_wafdir():
    try:
        os.listdir('waflib')
    except:
        raise ImportError('please provide a waflib directory in the current folder')

    d = 'waflib'
    lst = [d + os.sep + x for x in os.listdir(d) if x.endswith('.py')]
    e = d + os.sep + 'Tools'
    lst.extend([e + os.sep + x for x in os.listdir(e) if x.endswith('.py')])
    f = d + os.sep + 'extras'
    lst.extend([f + os.sep + x for x in os.listdir(f) if x.endswith('.py')])

    random.shuffle(lst)
    #lst.sort()
    return lst
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号