0001 function dmri_setenv()
0002
0003
0004
0005
0006
0007 DMRI_HOME = fileparts(which('dmri_setenv.m'));
0008
0009
0010 BASH_PATH = '/bin/bash';
0011 BASH_PROF = vbmeg('vb_rc_file');
0012
0013
0014
0015
0016
0017 setenv('DMRI_HOME', DMRI_HOME);
0018
0019
0020 setenv('BASH_PATH', BASH_PATH);
0021 setenv('BASH_PROF', BASH_PROF);
0022
0023
0024 job_throw_dir = fileparts(which('cpu_job_throw.sh'));
0025 system(['chmod 755 ' job_throw_dir, '/*.sh']);
0026
0027
0028 if exist('~/.mrtrix.conf', 'file') ~= 2
0029 copyfile([DMRI_HOME, filesep, '.mrtrix.conf'], '~/');
0030 end
0031