#NEWLINE# def stage_default_config_file( self ) : #NEWLINE# #INDENT# 'auto generate default config file, and stage it into the profile.' #NEWLINE# s = self . generate_config_file ( ) #NEWLINE# fname = os . path . join ( fname . profile_dir . location , self . config_file_name ) #NEWLINE# if ( self . overwrite or ( not os . path . exists ( fname ) ) ) : #NEWLINE# #INDENT# self . log . warn ( ( 'Generating default config file: %r' % fname ) ) #NEWLINE# with open ( fname , 'w' ) as f : #NEWLINE# #INDENT# f . write ( s )