Changeset 5171 for issm/trunk


Ignore:
Timestamp:
08/11/10 16:54:29 (15 years ago)
Author:
Eric.Larour
Message:

Now, startup will try and source src/m/contrib/USERNAME directory,
in case personal use stuff has been added to the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/startup.m

    r3009 r5171  
    6969clear ans
    7070
     71
     72%Now, load personal startup preferences, using the local user name:
     73%Recover user name
     74if ispc,
     75        [status,USERNAME]=system('echo [%USER%]');
     76else
     77        [status,USERNAME]=system('echo $USER');
     78end
     79if status~=0,
     80        error('startup error message: problem when running ''echo $USER'' shell command');
     81end
     82if exist([ISSM_DIR '/src/m/contrib/' USERNAME],'dir'),
     83        addpath([ISSM_DIR '/src/m/contrib/' USERNAME]);
     84end
Note: See TracChangeset for help on using the changeset viewer.