def run_mcr_job(job):
 log('Running a compiled Matlab job.\n')
 os.chdir(job.expt_dir)
 if os.environ.has_key('MATLAB'):
  mcr_loc = os.environ['MATLAB']
 else:
  mcr_loc = MCR_LOCATION
 cmd = ('./run_%s.sh %s %s' % (job.name, mcr_loc, job_file_for(job)))
 log(("Executing command '%s'\n" % cmd))
 sh(cmd)

def run_mcr_job ( job ) : log ( 'Running a compiled Matlab job.\n' ) os . chdir ( job . expt_dir ) if os . environ . has_key ( 'MATLAB' ) : mcr_loc = os . environ [ 'MATLAB' ] else : mcr_loc = MCR_LOCATION cmd = ( './run_%s.sh %s %s' % ( job . name , mcr_loc , job_file_for ( job ) ) ) log ( ( "Executing command '%s'\n" % cmd ) ) sh ( cmd )
run a compiled matlab job .