old_contents: import logging
  from pythonlsf import lsf
  
  LOG = logging.getLogger(__name__)
  
  class LSFDispatcher(object):
      def __init__(self, default_queue='gms'):
          self.default_queue = default_queue
  
      def get_job_status(self, job_id):
          pass
  
      def launch_job(self, command, arg=[], wrapper=None, wrapper_args=[], **kwargs):
          request = lsf.submit()
  
          command_list = []
          if wrapper:
              command_list.append(wrapper)
              command_list.extend(wrapper_args)
  
          command_list.append(command)
          command_list.extend(arg)
          request.command = ' '.join(map(str, command_list))
  
          LOG.debug("request.command = '%s'", request.command)
  
          request.options = lsf.SUB_QUEUE + lsf.SUB_OUT_FILE + lsf.SUB_ERR_FILE
          request.options2 = 0
  
          request.queue = self.default_queue
          LOG.debug("request.queue = %s", request.queue)
  
          request.beginTime = 0
          request.termTime = 0
          request.numProcessors = 1
          request.maxNumProcessors = 1
  
          request.errFile = '/gscuser/mburnett/lsf.err'
          request.outFile = '/gscuser/mburnett/lsf.out'
  
          limits = []
          for i in range(0, lsf.LSF_RLIM_NLIMITS):
              limits.append(lsf.DEFAULT_RLIMIT)
  
          request.rLimits = limits
  
          reply = lsf.submitReply()
  
          init_code = lsf.lsb_init("test")
  
          if init_code > 0:
              raise RuntimeError("Something bad happened: %s" %init_code)
          else:
              return lsf.lsb_submit(request, reply)
  
new_contents: import logging
  from pythonlsf import lsf
  
  LOG = logging.getLogger(__name__)
  
  class LSFDispatcher(object):
      def __init__(self, default_queue='gms'):
          self.default_queue = default_queue
  
      def get_job_status(self, job_id):
          pass
  
      def launch_job(self, command, arg=[], wrapper=None, wrapper_args=[], **kwargs):
          request = lsf.submit()
  
          command_list = []
          if wrapper:
              command_list.append(wrapper)
              command_list.extend(wrapper_args)
  
          command_list.append(command)
          command_list.extend(arg)
          request.command = ' '.join(map(str, command_list))
  
          LOG.debug("request.command = '%s'", request.command)
  
          request.options = lsf.SUB_QUEUE #+ lsf.SUB_OUT_FILE + lsf.SUB_ERR_FILE
          request.options2 = 0
  
          request.queue = self.default_queue
          LOG.debug("request.queue = %s", request.queue)
  
          request.beginTime = 0
          request.termTime = 0
          request.numProcessors = 1
          request.maxNumProcessors = 1
  
  #        request.errFile = '/gscuser/mburnett/lsf.err'
  #        request.outFile = '/gscuser/mburnett/lsf.out'
  
          limits = []
          for i in range(0, lsf.LSF_RLIM_NLIMITS):
              limits.append(lsf.DEFAULT_RLIMIT)
  
          request.rLimits = limits
  
          reply = lsf.submitReply()
  
          init_code = lsf.lsb_init("test")
  
          if init_code > 0:
              raise RuntimeError("Something bad happened: %s" %init_code)
          else:
              return lsf.lsb_submit(request, reply)
  
subject: comment out hard coded out and err files