def build_submit_description(executable, output, error, user_log, query_params):
 all_query_params = DEFAULT_QUERY_CLASSAD.copy()
 all_query_params.update(query_params)
 submit_description = []
 for (key, value) in all_query_params.items():
  submit_description.append(('%s = %s' % (key, value)))
 submit_description.append(('executable = ' + executable))
 submit_description.append(('output = ' + output))
 submit_description.append(('error = ' + error))
 submit_description.append(('log = ' + user_log))
 submit_description.append('queue')
 return '\n'.join(submit_description)

def build_submit_description ( executable , output , error , user_log , query_params ) : all_query_params = DEFAULT_QUERY_CLASSAD . copy ( ) all_query_params . update ( query_params ) submit_description = [ ] for ( key , value ) in all_query_params . items ( ) : submit_description . append ( ( '%s = %s' % ( key , value ) ) ) submit_description . append ( ( 'executable = ' + executable ) ) submit_description . append ( ( 'output = ' + output ) ) submit_description . append ( ( 'error = ' + error ) ) submit_description . append ( ( 'log = ' + user_log ) ) submit_description . append ( 'queue' ) return '\n' . join ( submit_description )
build up the contents of a condor submit description file .