solvers.py 文件源码

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

项目:MatchingMarkets.py 作者: QuantEcon 项目源码 文件源码
def COINMP_DLL_load_dll(path):
    """
    function that loads the DLL useful for debugging installation problems
    """
    import ctypes
    if os.name == 'nt':
        lib = ctypes.windll.LoadLibrary(str(path[-1]))
    else:
        #linux hack to get working
        mode = ctypes.RTLD_GLOBAL
        for libpath in path[:-1]:
            #RTLD_LAZY = 0x00001
            ctypes.CDLL(libpath, mode = mode)
        lib = ctypes.CDLL(path[-1], mode = mode)
    return lib
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号