def submit_jobs(filenames, verbose=False):
 if (not which('qsub')):
  raise ApplicationNotFoundError("qsub not found. Can't submit jobs.")
 for file in filenames:
  command = ('qsub %s' % file)
  result = Popen(command, shell=True, universal_newlines=True, stdout=PIPE, stderr=STDOUT).stdout.read()
  if verbose:
   print result

def submit_jobs ( filenames , verbose = False ) : if ( not which ( 'qsub' ) ) : raise ApplicationNotFoundError ( "qsub not found. Can't submit jobs." ) for file in filenames : command = ( 'qsub %s' % file ) result = Popen ( command , shell = True , universal_newlines = True , stdout = PIPE , stderr = STDOUT ) . stdout . read ( ) if verbose : print result
submit jobs using exe pointed to by cluster_jobs_fp .