psutils.py 文件源码

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

项目:picosdk-python-examples 作者: picotech 项目源码 文件源码
def psloadlib(name):
    """ Loads driver library
    :param name: driver name
    :type name: str
    :returns: ctypes reference to the library
    :rtype: object
    """
    result = None
    try:
        if sys.platform == 'win32':
            result = ctypes.WinDLL(find_library(name))
        else:
            result = cdll.LoadLibrary(find_library(name))
    except OSError as ex:
        print name, "import(%d): Library not found" % sys.exc_info()[-1].tb_lineno
    return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号