Mercurial > repos > public > matlab_path_manager
view +mpm/checkin.m @ 16:4c5d876068c2
Add stub for MatlabPathManager class
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 17 Sep 2018 14:11:38 +0200 |
parents | 309cc6c0cd75 |
children | 02c290e2018c |
line wrap: on
line source
% 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