setup.py 文件源码

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

项目:larissa 作者: bannsec 项目源码 文件源码
def _get_boost_version(boost_path):
    # Assuming the path exists here
    # Return (major, minor, patch)

    with open(os.path.join(boost_path,"boost","version.hpp"),"r") as f:
        data = f.read()

    version = int(re.findall("#define +BOOST_VERSION +([0-9]+)",data)[0])

    return version / 100000, version / 100 % 1000, version % 100
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号