@staticmethod
def _find_lib():
    '\n        Search for the CDF library\n\n        Searches in likely locations for CDF libraries and attempts to load\n        them. Stops at first successful load and, if fails, reports all\n        the files that were tried as libraries.\n\n        Returns\n        =======\n        out : tuple\n             This is either (path to library, loaded library)\n             or, in the event of failure, (None, list of libraries tried)\n        '
    failed = []
    for libpath in Library._lib_paths():
        try:
            lib = ctypes.CDLL(libpath)
        except:
            failed.append(libpath)
        else:
            return (libpath, lib)
    return (failed, None)
Search for the CDF library

Searches in likely locations for CDF libraries and attempts to load
them. Stops at first successful load and, if fails, reports all
the files that were tried as libraries.

Returns
=======
out : tuple
     This is either (path to library, loaded library)
     or, in the event of failure, (None, list of libraries tried)
@staticmethod
def _find_lib():
    '\n        Search for the CDF library\n\n        Searches in likely locations for CDF libraries and attempts to load\n        them. Stops at first successful load and, if fails, reports all\n        the files that were tried as libraries.\n\n        Returns\n        =======\n        out : tuple\n             This is either (path to library, loaded library)\n             or, in the event of failure, (None, list of libraries tried)\n        '
    failed = []
    for libpath in Library._lib_paths():
        try:
            lib = ctypes.CDLL(libpath)
        except:
            failed.append(libpath)
        else:
            return (libpath, lib)
    return (failed, None)