glymur/config.py
def _determine_full_path(libname):
    """
    Try to determine the path to the openjp2 library.

    Parameters
    ----------
    libname : str
        short name for library (openjp2)

    Returns
    -------
    path to openjp2 library or None if openjp2 library not found
    """

    # A location specified by the glymur configuration file has precedence.
    path = read_config_file(libname)
    if path is not None:
        return path

    # No joy on config file.  Cygwin?  Cygwin is a bit of an odd case.
    if platform.system().startswith('CYGWIN'):
        g = pathlib.Path('/usr/bin').glob('cygopenjp2*.dll')
        try:
            path = list(g)[0]
        except IndexError:
            # openjpeg possibly not installed
            pass
        else:
            if path.exists():
                return path

    # No joy on config file and not Cygwin.  Can ctypes find it anyway?
    path = find_library(libname)
    if path is not None:
        return pathlib.Path(path)
    else:
        return None

    Try to determine the path to the openjp2 library.

    Parameters
    ----------
    libname : str
        short name for library (openjp2)

    Returns
    -------
    path to openjp2 library or None if openjp2 library not found
    
Try to determine the path to the openjp2 library.
Parameters

libname : str
short name for library (openjp2)

Returns

path to openjp2 library or None if openjp2 library not found
Try to determine the path to the openjp2 library . Parameters libname : str short name for library ( openjp2 ) Returns path to openjp2 library or None if openjp2 library not found
def _determine_full_path(libname):
    path = read_config_file(libname)
    if path is not None:
        return path
    if platform.system().startswith('CYGWIN'):
        g = pathlib.Path('/usr/bin').glob('cygopenjp2*.dll')
        try:
            path = list(g)[0]
        except IndexError:
            pass
        else:
            if path.exists():
                return path
    path = find_library(libname)
    if path is not None:
        return pathlib.Path(path)
    else:
        return None
def _determine_full_path ( libname ) : path = read_config_file ( libname ) if path is not None : return path if platform . system ( ) . startswith ( 'CYGWIN' ) : g = pathlib . Path ( '/usr/bin' ) . glob ( 'cygopenjp2*.dll' ) try : path = list ( g ) [ 0 ] except IndexError : pass else : if path . exists ( ) : return path path = find_library ( libname ) if path is not None : return pathlib . Path ( path ) else : return None
Try to determine the path to the openjp2 library.
Try to determine the path to the openjp2 library .
"""
    Try to determine the path to the openjp2 library.

    Parameters
    ----------
    libname : str
        short name for library (openjp2)

    Returns
    -------
    path to openjp2 library or None if openjp2 library not found
    """ # A location specified by the glymur configuration file has precedence. # No joy on config file.  Cygwin?  Cygwin is a bit of an odd case. # openjpeg possibly not installed # No joy on config file and not Cygwin.  Can ctypes find it anyway?
libname