Changeset 20382
- Timestamp:
- 03/30/16 13:47:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/os/issmdir.m
r20377 r20382 7 7 %Initialize output ISSM_DIR 8 8 ISSM_DIR=''; 9 slash=filesep(); 9 10 10 11 %Get ISSM_DIR from function path (we do not want to force users to edit their bashrc) … … 12 13 13 14 %issmdir might be in bin, 14 pos=strfind(path, 'bin/issmdir.m');15 pos=strfind(path,['bin' slash 'issmdir.m']); 15 16 if ~isempty(pos), 16 17 ISSM_DIR=path(1:pos-1); 17 18 else 18 pos=strfind(path, 'src/m/os/issmdir.m');19 pos=strfind(path,['src' slash 'm' slash 'os' slash 'issmdir.m']); 19 20 if ~isempty(pos), 20 21 ISSM_DIR=path(1:pos-1);
Note:
See TracChangeset
for help on using the changeset viewer.