Changeset 22758 for issm/trunk/src/m/os/issmdir.m
- Timestamp:
- 05/10/18 10:24:27 (7 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/os/issmdir.m
r20500 r22758 7 7 %Initialize output ISSM_DIR 8 8 ISSM_DIR=''; 9 slash=filesep();10 9 11 10 %Get ISSM_DIR from function path (we do not want to force users to edit their bashrc) 12 path =which('issmdir');11 path = mfilename('fullpath'); 13 12 14 13 %issmdir might be in bin, 15 pos=strfind(path,['bin' slash 'issmdir.m']); 14 slash = filesep(); 15 pos = strfind(path,['bin' slash 'issmdir']); 16 16 if ~isempty(pos), 17 17 ISSM_DIR=path(1:pos-1); 18 18 else 19 pos=strfind(path,['src' slash 'm' slash 'os' slash 'issmdir .m']);19 pos=strfind(path,['src' slash 'm' slash 'os' slash 'issmdir']); 20 20 if ~isempty(pos), 21 21 ISSM_DIR=path(1:pos-1);
Note:
See TracChangeset
for help on using the changeset viewer.