#NEWLINE# def init_config_files( self ) : #NEWLINE# #INDENT# '[optionally] copy default config files into profile dir.' #NEWLINE# path = self . builtin_profile_dir #NEWLINE# if self . copy_config_files : #NEWLINE# #INDENT# src = self . profile #NEWLINE# cfg = self . config_file_name #NEWLINE# if ( path and os . path . exists ( os . path . join ( path , cfg ) ) ) : #NEWLINE# #INDENT# self . log . warn ( ( 'Staging %r from %s into %r [overwrite=%s]' % ( cfg , src , self . profile_dir . location , self . overwrite ) ) ) #NEWLINE# self . profile_dir . copy_config_file ( cfg , path = path , overwrite = self . overwrite ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . stage_default_config_file ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# files = glob . glob ( os . path . join ( path , '*.py' ) ) #NEWLINE# for fullpath in files : #NEWLINE# #INDENT# cfg = os . path . basename ( fullpath ) #NEWLINE# if self . profile_dir . copy_config_file ( cfg , path = path , overwrite = False ) : #NEWLINE# #INDENT# self . log . warn ( ( 'Staging bundled %s from %s into %r' % ( cfg , self . profile , self . profile_dir . location ) ) )