def _get_s3transfer_performance_script(script_name):
 s3transfer_directory = os.path.dirname(s3transfer.__file__)
 s3transfer_directory = os.path.dirname(s3transfer_directory)
 scripts_directory = 'scripts/performance'
 scripts_directory = os.path.join(s3transfer_directory, scripts_directory)
 script = os.path.join(scripts_directory, script_name)
 if os.path.isfile(script):
  return script
 else:
  return None

def _get_s3transfer_performance_script ( script_name ) : s3transfer_directory = os . path . dirname ( s3transfer . __file__ ) s3transfer_directory = os . path . dirname ( s3transfer_directory ) scripts_directory = 'scripts/performance' scripts_directory = os . path . join ( s3transfer_directory , scripts_directory ) script = os . path . join ( scripts_directory , script_name ) if os . path . isfile ( script ) : return script else : return None
retrieves an s3transfer performance script if available .