#NEWLINE# def is_extension( self , name ) : #NEWLINE# #INDENT# fn = os . path . join ( self . call_pg_config ( 'sharedir' ) , 'extension' , ( name + '.control' ) ) #NEWLINE# logger . debug ( 'checking if exists %s' , fn ) #NEWLINE# return os . path . exists ( self )