#NEWLINE# def __init__( self , senna_path , operations , encoding = 'utf-8' ) : #NEWLINE# #INDENT# self . _encoding = encoding #NEWLINE# self . _path = ( path . normpath ( senna_path ) + sep ) #NEWLINE# exe_file_1 = self . executable ( self . _path ) #NEWLINE# if ( not path . isfile ( exe_file_1 ) ) : #NEWLINE# #INDENT# if ( 'SENNA' in environ ) : #NEWLINE# #INDENT# self . _path = ( path . normpath ( environ [ 'SENNA' ] ) + sep ) #NEWLINE# exe_file_2 = self . executable ( self . _path ) #NEWLINE# if ( not path . isfile ( exe_file_2 ) ) : #NEWLINE# #INDENT# raise OSError ( ( 'Senna executable expected at %s or %s but not found' % ( exe_file_1 , exe_file_2 ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . operations = operations