@staticmethod
def _lib_paths():
    'Find candidate paths for the CDF library\n\n        Does not check that the library is actually in any particular directory,\n        just returns a list of possible locations, in priority order.\n\n        Returns\n        =======\n        out : generator of str\n            paths that look like the CDF library\n        '
    names = {'win32': ['cdf.dll'], 'darwin': ['libcdf.dylib', 'cdf.dylib', 'libcdf.so'], 'linux2': ['libcdf.so'], 'linux': ['libcdf.so']}
    names = names.get(sys.platform, ['libcdf.so'])
    search_dir = (lambda x: [os.path.join(x, fname) for fname in names if os.path.exists(os.path.join(x, fname))])
    if ('PREFIX' in os.environ):
        if (sys.platform == 'win32'):
            for p in search_dir(os.path.join(os.environ['PREFIX'], 'Library', 'bin')):
                (yield p)
        else:
            for p in search_dir(os.path.join(os.environ['PREFIX'], 'lib')):
                (yield p)
    if ('CONDA_PREFIX' in os.environ):
        if (sys.platform == 'win32'):
            for p in search_dir(os.path.join(os.environ['CONDA_PREFIX'], 'Library', 'bin')):
                (yield p)
        else:
            for p in search_dir(os.path.join(os.environ['CONDA_PREFIX'], 'lib')):
                (yield p)
    if ('LIBRARY_BIN' in os.environ):
        for p in search_dir(os.environ['LIBRARY_BIN']):
            (yield p)
    ctypespath = ctypes.util.find_library(('cdf.dll' if (sys.platform == 'win32') else 'cdf'))
    if ctypespath:
        (yield ctypespath)
Find candidate paths for the CDF library

Does not check that the library is actually in any particular directory,
just returns a list of possible locations, in priority order.

Returns
=======
out : generator of str
    paths that look like the CDF library
@staticmethod
def _lib_paths():
    'Find candidate paths for the CDF library\n\n        Does not check that the library is actually in any particular directory,\n        just returns a list of possible locations, in priority order.\n\n        Returns\n        =======\n        out : generator of str\n            paths that look like the CDF library\n        '
    names = {'win32': ['cdf.dll'], 'darwin': ['libcdf.dylib', 'cdf.dylib', 'libcdf.so'], 'linux2': ['libcdf.so'], 'linux': ['libcdf.so']}
    names = names.get(sys.platform, ['libcdf.so'])
    search_dir = (lambda x: [os.path.join(x, fname) for fname in names if os.path.exists(os.path.join(x, fname))])
    if ('PREFIX' in os.environ):
        if (sys.platform == 'win32'):
            for p in search_dir(os.path.join(os.environ['PREFIX'], 'Library', 'bin')):
                (yield p)
        else:
            for p in search_dir(os.path.join(os.environ['PREFIX'], 'lib')):
                (yield p)
    if ('CONDA_PREFIX' in os.environ):
        if (sys.platform == 'win32'):
            for p in search_dir(os.path.join(os.environ['CONDA_PREFIX'], 'Library', 'bin')):
                (yield p)
        else:
            for p in search_dir(os.path.join(os.environ['CONDA_PREFIX'], 'lib')):
                (yield p)
    if ('LIBRARY_BIN' in os.environ):
        for p in search_dir(os.environ['LIBRARY_BIN']):
            (yield p)
    ctypespath = ctypes.util.find_library(('cdf.dll' if (sys.platform == 'win32') else 'cdf'))
    if ctypespath:
        (yield ctypespath)