Changeset 10972
- Timestamp:
- 11/29/11 16:22:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/startup.m
r10940 r10972 11 11 lastwarn(''); 12 12 13 %Recover ISSM_TIER and USERNAME13 %Recover ISSM_TIER 14 14 ISSM_TIER=getenv('ISSM_TIER'); 15 USERNAME =getenv('USER');16 15 if (isempty(ISSM_TIER)), 17 16 error('issmdir error message: ''ISSM_TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!'); … … 32 31 addpath(recursivepath([ISSM_TIER '/externalpackages/googleearthtoolbox/'])); 33 32 addpath(recursivepath([ISSM_TIER '/externalpackages/export_fig'])); 33 clear ISSM_TIER; 34 34 35 35 %Check on any warning messages that might indicate that the paths were not correct. … … 55 55 clear ans; 56 56 57 %Now, load personal startup preferences, using the local user name:58 rmpath(recursivepath([ISSM_TIER '/src/m/usr']));59 if exist([ISSM_TIER '/src/m/usr/' USERNAME],'dir'),60 addpath(recursivepath([ISSM_TIER '/src/m/usr/' USERNAME]));61 end62 63 clear USERNAME ISSM_TIER;64 65 57 %disable matlab bell! 66 58 beep off; 59 67 60 % no warning if we try to plot while in nojvm (will not be supported in future releases) 68 61 warning off MATLAB:HandleGraphics:noJVM
Note:
See TracChangeset
for help on using the changeset viewer.