Mercurial > repos > public > matlab_path_manager
changeset 25:e2c18217aee0
Fix some reference errors
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 18 Sep 2018 12:56:22 +0200 |
parents | fdad9fe450c5 |
children | 0046610f1573 |
files | +mpm/MatlabPathManager.m |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/+mpm/MatlabPathManager.m Tue Sep 18 11:55:11 2018 +0200 +++ b/+mpm/MatlabPathManager.m Tue Sep 18 12:56:22 2018 +0200 @@ -25,7 +25,7 @@ state = mpm.PersistentState(obj.stateFilePath); addpath(p); - state.added_paths(p) = true; + state.subpaths(p) = true; state.saveState(); @@ -37,7 +37,7 @@ state = mpm.PersistentState(obj.stateFilePath); rmpath(p); - state.added_paths.remove(p); + state.subpaths.remove(p); state.saveState(); @@ -56,7 +56,7 @@ function s = loadedSubpaths(obj) state = mpm.PersistentState(obj.stateFilePath); - s = state.added_paths.keys(); + s = state.subpaths.keys(); % TODO: Make it respect order from the matlab path end @@ -129,10 +129,11 @@ sp = obj.loadedSubpaths(); for i = 1:length(sp) - obj.unload(sp{i}); + obj.unloadSubpath(sp{i}); end end end end % TODO: Organize order of methods +% TODO: Add flag for being persistent or not? (savepath or not)