def _load_library():
    '''
    Finds, loads and returns the most recent version of the library.
    '''
    # MODIFIED by john schulman for cs294 homework because existing method was broken
    osp = os.path
    if sys.platform.startswith("darwin"):
        libfile = osp.abspath(osp.join(osp.dirname(__file__),"../../vendor/mujoco/libglfw.3.dylib"))
    elif sys.platform.startswith("linux"):
        libfile = osp.abspath(osp.join(osp.dirname(__file__),"../../vendor/mujoco/libglfw.so.3"))
    elif sys.platform.startswith("win"):
        libfile = osp.abspath(osp.join(osp.dirname(__file__),"../../vendor/mujoco/glfw3.dll"))
    else:
        raise RuntimeError("unrecognized platform %s"%sys.platform)
    return ctypes.CDLL(libfile)
dataset/ETHPy150Open rllab/rllab/rllab/mujoco_py/glfw.py/_load_library/original