Mercurial > repos > public > matlab_path_manager
diff +mpm/subpaths.m @ 6:19c4af287596
Fix default values for relative part
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Sep 2018 16:54:29 +0200 |
parents | a9795512f33a |
children | f37b4c00a863 |
line wrap: on
line diff
--- a/+mpm/subpaths.m Mon Sep 10 16:35:17 2018 +0200 +++ b/+mpm/subpaths.m Mon Sep 10 16:54:29 2018 +0200 @@ -1,9 +1,9 @@ function sp = subpaths(d) if ~exist('d', 'var') || isempty(d) - d = pwd; + d = ''; end % TODO: Nice error message if file doesn't exist - fstr = fileread('.subpaths'); + fstr = fileread(fullfile(d, '.subpaths')); sp = splitlines(strtrim(fstr)); end