Mercurial > repos > public > matlab_path_manager
annotate +mpm/subpaths.m @ 4:38c29c9ba07f
Add function for showing the state
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Sep 2018 15:21:49 +0200 |
parents | a9795512f33a |
children | 19c4af287596 |
rev | line source |
---|---|
2
a9795512f33a
Fix naming of function for getting subpaths
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
1 function sp = subpaths(d) |
0 | 2 if ~exist('d', 'var') || isempty(d) |
3 d = pwd; | |
4 end | |
5 | |
6 % TODO: Nice error message if file doesn't exist | |
7 fstr = fileread('.subpaths'); | |
8 sp = splitlines(strtrim(fstr)); | |
9 end |