text: """
  Execute an external process to set_meta() on a provided list of pickled datasets.
  
  This was formerly scripts/set_metadata.py and expects these arguments:
  
      %prog datatypes_conf.xml job_metadata_file metadata_in,metadata_kwds,metadata_out,metadata_results_code,output_filename_override,metadata_override... max_metadata_value_size
  
  Galaxy should be importable on sys.path and output_filename_override should be
  set to the path of the dataset on which metadata is being set
  (output_filename_override could previously be left empty and the path would be
  constructed automatically).
  """
  
  import os
  import sys
  
  # insert *this* galaxy before all others on sys.path
  sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)))
  
  from galaxy.metadata.set_metadata import set_metadata
  
  __all__ = ("set_metadata",)
  