#NEWLINE# def _find_file_path( name , locations , prefixes = [ '' ] , suffixes = [ '' ] ) : #NEWLINE# #INDENT# for prefix in prefixes : #NEWLINE# #INDENT# for suffix in suffixes : #NEWLINE# #INDENT# for location in locations : #NEWLINE# #INDENT# path = os . path . join ( suffix , ( ( prefix + name ) + suffix ) ) #NEWLINE# if os . path . isfile ( path ) : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return None