#NEWLINE# def file_exists( filename ) : #NEWLINE# #INDENT# if ( not filename ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if os . path . exists ( filename ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# fullpath = get_filepath ( filename ) #NEWLINE# if ( fullpath and os . path . exists ( fullpath ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False