Mercurial > repos > public > matlab_path_manager
diff +mpm/subpackages.m @ 0:a549d0cd3775
Initial commit
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Sep 2018 14:17:52 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/+mpm/subpackages.m Mon Sep 10 14:17:52 2018 +0200 @@ -0,0 +1,9 @@ +function sp = subpackages(d) + if ~exist('d', 'var') || isempty(d) + d = pwd; + end + + % TODO: Nice error message if file doesn't exist + fstr = fileread('.subpaths'); + sp = splitlines(strtrim(fstr)); +end