(fname)
return suffix in ('gir', 'typelib')
Check if the file is a library-like file generated by a module-specific
    target, such as GirTarget or TypelibTarget
Check if the file is a library-like file generated by a module-specific
    target, such as GirTarget or TypelibTarget
Check if the file is a library - like file generated by a module - specific target such as GirTarget or TypelibTarget
def is_module_library(fname):
    '''
    Check if the file is a library-like file generated by a module-specific
    target, such as GirTarget or TypelibTarget
    '''
    if hasattr(fname, 'fname'):
        fname = fname.fname
    suffix = fname.split('.')[-1]
    return suffix in ('gir', 'typelib')
def is_module_library ( fname ) : if hasattr ( fname , 'fname' ) : fname = fname . fname suffix = fname . split ( '.' ) [ - 1 ] return suffix in ( 'gir' , 'typelib' )