#NEWLINE# def Generate( self , project_configuration , output_writer ) : #NEWLINE# #INDENT# 'Generates common source files.\n\n    Args:\n      project_configuration: the project configuration (instance of\n                             ProjectConfiguration).\n      output_writer: an output writer object (instance of OutputWriter).\n    ' #NEWLINE# template_mappings = project_configuration . GetTemplateMappings ( ) #NEWLINE# for directory_entry in os . listdir ( self . _template_directory ) : #NEWLINE# #INDENT# template_filename = os . path . join ( self . _template_directory , directory_entry ) #NEWLINE# if ( not os . path . isfile ( output_writer ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# output_filename = os . path . join ( 'common' , directory_entry ) #NEWLINE# self . _GenerateSection ( template_filename , template_mappings , output_writer , output_filename )