#NEWLINE# def _GenerateAppYaml( self , stage_dir , api_version , appengine_generated ) : #NEWLINE# #INDENT# 'Creates the app.yaml file in WEB-INF/appengine-generated/.\n\n    Returns:\n      The path to the WEB-INF/appengine-generated directory.\n    ' #NEWLINE# static_file_list = self . _GetStaticFileList ( stage_dir ) #NEWLINE# yaml_str = self . GenerateAppYamlString ( static_file_list , api_version ) #NEWLINE# if ( not os . path . isdir ( appengine_generated ) ) : #NEWLINE# #INDENT# os . mkdir ( appengine_generated ) #NEWLINE# #UNINDENT# with open ( os . path . join ( appengine_generated , 'app.yaml' ) , 'w' ) as handle : #NEWLINE# #INDENT# handle . write ( yaml_str )