#NEWLINE# def updateTools( self , files , path ) : #NEWLINE# #INDENT# for tool in files . tools : #NEWLINE# #INDENT# if ( tool != 'gknoConfiguration' ) : #NEWLINE# #INDENT# toolData = tc . toolConfiguration ( ) #NEWLINE# toolData . allowTermination = False #NEWLINE# filename = str ( ( ( ( path + '/' ) + tool ) + '.json' ) ) #NEWLINE# toolData . getConfigurationData ( tool , filename ) #NEWLINE# if ( not toolData . success ) : #NEWLINE# #INDENT# print ( 'Tool:' , tool , 'could not be parsed.' ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if toolData . webPage : #NEWLINE# #INDENT# webInfo = toolData . webPage #NEWLINE# lower = str ( webInfo [ 'tool' ] ) . lower ( ) #NEWLINE# if ( str ( lower ) not in self . toolInformation ) : #NEWLINE# #INDENT# self . toolInformation [ lower ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# for attribute in webInfo : #NEWLINE# #INDENT# if ( attribute != 'tool' ) : #NEWLINE# #INDENT# if ( attribute not in self . toolInformation [ lower ] ) : #NEWLINE# #INDENT# self . toolInformation [ lower ] [ str ( attribute ) ] = [ ] #NEWLINE# #UNINDENT# for value in webInfo [ attribute ] : #NEWLINE# #INDENT# self . toolInformation [ lower ] [ attribute ] . append ( value )