Mercurial > repos > public > matlab_path_manager
diff +mpm/check.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 | 6c46515ee860 |
children |
line wrap: on
line diff
--- a/+mpm/check.m Mon Sep 10 16:35:17 2018 +0200 +++ b/+mpm/check.m Mon Sep 10 16:54:29 2018 +0200 @@ -4,9 +4,13 @@ % % Useful to put at the top of some scripts function check() + if ~exist('d', 'var') || isempty(d) + d = ''; + end + folders = split(path(), pathsep); - sp = mpm.subpaths(); + sp = mpm.subpaths(d); for i = 1:length(sp) if ~isAtTop(sp{i}, fullfile(pwd, sp{i}), folders) error('Subpaths are not correctly set. Try running mpm.set()');