Mercurial > repos > public > matlab_path_manager
diff +mpm/checkin.m @ 7:309cc6c0cd75
Change names in ui
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Sep 2018 17:05:03 +0200 |
parents | +mpm/set.m@19c4af287596 |
children | 02c290e2018c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/+mpm/checkin.m Mon Sep 10 17:05:03 2018 +0200 @@ -0,0 +1,17 @@ +% Set project to current folder +function set(d) + if ~exist('d', 'var') || isempty(d) + d = ''; + end + + state = mpm.load_state(); + + sp = mpm.subpaths(d); + for i = 1:length(sp) + subpath = fullfile(pwd, sp{i}); + addpath(subpath); + state.added_paths(subpath) = true; + end + + mpm.save_state(state); +end