Changeset 20382


Ignore:
Timestamp:
03/30/16 13:47:21 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: make issmdir Windows friendly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/os/issmdir.m

    r20377 r20382  
    77%Initialize output ISSM_DIR
    88ISSM_DIR='';
     9slash=filesep();
    910
    1011%Get ISSM_DIR from function path (we do not want to force users to edit their bashrc)
     
    1213
    1314%issmdir might be in bin,
    14 pos=strfind(path,'bin/issmdir.m');
     15pos=strfind(path,['bin' slash 'issmdir.m']);
    1516if ~isempty(pos),
    1617        ISSM_DIR=path(1:pos-1);
    1718else
    18         pos=strfind(path,'src/m/os/issmdir.m');
     19        pos=strfind(path,['src' slash 'm' slash 'os' slash 'issmdir.m']);
    1920        if ~isempty(pos),
    2021                ISSM_DIR=path(1:pos-1);
Note: See TracChangeset for help on using the changeset viewer.