<s> from __future__ import absolute_import , division , print_function <EOL> import glob <EOL> import os . path <EOL> from cffi import FFI <EOL> from cffi . verifier import Verifier <EOL> __all__ = [ "<STR_LIT>" ] <EOL> HEADERS = glob . glob ( <EOL> os . path . join ( os . path . abspath ( os . path . dirname ( __file__ ) ) , "<STR_LIT>" ) <EOL> ) <EOL> ffi = FFI ( ) <EOL> for header in sorted ( HEADERS ) : <EOL> with open ( header , "<STR_LIT:r>" ) as hfile : <EOL> ffi . cdef ( hfile . read ( ) ) <EOL> ffi . verifier = Verifier ( <EOL> ffi , <EOL> "<STR_LIT>" , <EOL> libraries = [ "<STR_LIT>" ] , <EOL> ext_package = "<STR_LIT>" , <EOL> ) <EOL> class Library ( object ) : <EOL> def __init__ ( self , ffi ) : <EOL> self . ffi = ffi <EOL> self . _lib = None <EOL> def _compile_module ( * args , ** kwargs ) : <EOL> raise RuntimeError ( "<STR_LIT>" ) <EOL> self . ffi . verifier . compile_module = _compile_module <EOL> def __getattr__ ( self , name ) : <EOL> if self . _lib is None : <EOL> self . _lib = self . ffi . verifier . load_library ( ) <EOL> return getattr ( self . _lib , name ) <EOL> lib = Library ( ffi ) </s>
