def copy_sample_file(app, filename, dest_path=None):
 if (dest_path is None):
  dest_path = os.path.abspath(app.config.tool_data_path)
 sample_file_name = basic_util.strip_path(filename)
 copied_file = sample_file_name.replace('.sample', '')
 full_source_path = os.path.abspath(filename)
 full_destination_path = os.path.join(dest_path, sample_file_name)
 if (full_source_path != full_destination_path):
  shutil.copy(full_source_path, full_destination_path)
 if (not os.path.lexists(os.path.join(dest_path, copied_file))):
  shutil.copy(full_source_path, os.path.join(dest_path, copied_file))

def copy_sample_file ( app , filename , dest_path = None ) : if ( dest_path is None ) : dest_path = os . path . abspath ( app . config . tool_data_path ) sample_file_name = basic_util . strip_path ( filename ) copied_file = sample_file_name . replace ( '.sample' , '' ) full_source_path = os . path . abspath ( filename ) full_destination_path = os . path . join ( dest_path , sample_file_name ) if ( full_source_path != full_destination_path ) : shutil . copy ( full_source_path , full_destination_path ) if ( not os . path . lexists ( os . path . join ( dest_path , copied_file ) ) ) : shutil . copy ( full_source_path , os . path . join ( dest_path , copied_file ) )
copy xxx .