#NEWLINE# def load( info ) : #NEWLINE# #INDENT# index = 'IMAGE_SPACE_FLANN_INDEX' #NEWLINE# if ( ( index not in os . environ ) or ( os . environ [ index ] == '' ) ) : #NEWLINE# #INDENT# raise Exception ( ( 'Imagespace Flann will not function without the %s environment variable.' % index ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# os . environ [ index ] = os . environ [ index ] . rstrip ( '/' ) #NEWLINE# #UNINDENT# info [ 'apiRoot' ] . flann_imagecontentsearch = FlannImageContentSearch ( )