#NEWLINE# def find_logging_path( id ) : #NEWLINE# #INDENT# out = get_output_path ( ) #NEWLINE# dirs = listdir ( out ) #NEWLINE# path = '' #NEWLINE# for d in dirs : #NEWLINE# #INDENT# if ( str ( id ) in d ) : #NEWLINE# #INDENT# path = join ( out , d ) #NEWLINE# #UNINDENT# #UNINDENT# if ( path == '' ) : #NEWLINE# #INDENT# raise "The ID couldn't be found" #NEWLINE# #UNINDENT# for f in listdir ( path ) : #NEWLINE# #INDENT# if ( 'log' in f ) : #NEWLINE# #INDENT# return join ( path , id )