def write_cores(core_data, dir_list):
 syslog.syslog(('Writing core files to %s' % dir_list))
 for result_dir in dir_list:
  if (not os.path.isdir(result_dir)):
   os.makedirs(result_dir)
  core_path = os.path.join(result_dir, 'core')
  core_path = write_to_file(core_path, core_file, report=True)

def write_cores ( core_data , dir_list ) : syslog . syslog ( ( 'Writing core files to %s' % dir_list ) ) for result_dir in dir_list : if ( not os . path . isdir ( result_dir ) ) : os . makedirs ( result_dir ) core_path = os . path . join ( result_dir , 'core' ) core_path = write_to_file ( core_path , core_file , report = True )
write core files to all directories .