Mercurial > repos > public > matlab_path_manager
view +mpm/set.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 | ce34182c274e |
children | 19c4af287596 |
line wrap: on
line source
% Set project to current folder function set(d) if ~exist('d', 'var') || isempty(d) d = pwd; 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