def copy_sample_files(app, sample_files, tool_path=None, sample_files_copied=None, dest_path=None):
 filenames_not_to_copy = ['tool_data_table_conf.xml.sample']
 sample_files_copied = util.listify(sample_files_copied)
 for filename in sample_files:
  filename_sans_path = os.path.split(filename)[1]
  if ((filename_sans_path not in filenames_not_to_copy) and (filename not in sample_files_copied)):
   if tool_path:
    filename = os.path.join(tool_path, filename)
   if is_data_index_sample_file(filename):
    copy_sample_file(app, filename, dest_path=dest_path)

def copy_sample_files ( app , sample_files , tool_path = None , sample_files_copied = None , dest_path = None ) : filenames_not_to_copy = [ 'tool_data_table_conf.xml.sample' ] sample_files_copied = util . listify ( sample_files_copied ) for filename in sample_files : filename_sans_path = os . path . split ( filename ) [ 1 ] if ( ( filename_sans_path not in filenames_not_to_copy ) and ( filename not in sample_files_copied ) ) : if tool_path : filename = os . path . join ( tool_path , filename ) if is_data_index_sample_file ( filename ) : copy_sample_file ( app , filename , dest_path = dest_path )
copy all appropriate files to dest_path in the local galaxy environment that have not already been copied .