def _find_yaml_path():
 (current, last) = (os.getcwd(), None)
 while (current != last):
  for yaml_name in FILENAMES:
   yaml_path = os.path.join(current, yaml_name)
   if os.path.exists(yaml_path):
    return yaml_path
  last = current
  (current, last) = (os.path.dirname(current), current)
 return None

def _find_yaml_path ( ) : ( current , last ) = ( os . getcwd ( ) , None ) while ( current != last ) : for yaml_name in FILENAMES : yaml_path = os . path . join ( current , yaml_name ) if os . path . exists ( yaml_path ) : return yaml_path last = current ( current , last ) = ( os . path . dirname ( current ) , current ) return None
traverse directory trees to find conf .