#NEWLINE# def _load_backend_lib( backend , name , flags ) : #NEWLINE# #INDENT# if ( name is None ) : #NEWLINE# #INDENT# if ( sys . platform != 'win32' ) : #NEWLINE# #INDENT# return backend . load_library ( None , flags ) #NEWLINE# #UNINDENT# name = 'c' #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# if ( ( '.' not in name ) and ( '/' not in name ) ) : #NEWLINE# #INDENT# raise OSError ( ( 'library not found: %r' % ( name , ) ) ) #NEWLINE# #UNINDENT# return backend . load_library ( name , flags ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# import ctypes.util #NEWLINE# path = ctypes . util . find_library ( name ) #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# return backend . load_library ( path , flags )