(job)
Run a compiled Matlab job.
Run a compiled Matlab job.
Run a compiled Matlab job .
def run_mcr_job(job):
    '''Run a compiled Matlab job.'''

    log("Running a compiled Matlab job.\n")

    # Change into the directory.
    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" ) # Change into the directory. 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 )