#NEWLINE# def _find_yaml_path( ) : #NEWLINE# #INDENT# 'Traverse directory trees to find conf.yaml file.\n\n  Begins with the current working direcotry and then moves up the\n  directory structure until the file is found..\n\n  Returns:\n    the path of conf.yaml file or None if not found.\n  ' #NEWLINE# ( current , last ) = ( os . getcwd ( ) , None ) #NEWLINE# while ( current != last ) : #NEWLINE# #INDENT# for yaml_name in FILENAMES : #NEWLINE# #INDENT# yaml_path = os . path . join ( current , yaml_name ) #NEWLINE# if os . path . exists ( yaml_path ) : #NEWLINE# #INDENT# return yaml_path #NEWLINE# #UNINDENT# #UNINDENT# last = current #NEWLINE# ( current , last ) = ( os . path . dirname ( current ) , current ) #NEWLINE# #UNINDENT# return None