We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50793af commit 7b73c28Copy full SHA for 7b73c28
PTKAddPaths.m
@@ -18,6 +18,9 @@ function PTKAddPaths(varargin)
18
[path_root, ~, ~] = fileparts(full_path);
19
cached_pathname = [path_root '.' PTKAddPaths_Version_Number];
20
21
+ % We force a class reset if the paths have changed since the last run
22
+ clear_classes = ~isempty(PTK_PathsHaveBeenSet) && ~strcmp(PTK_PathsHaveBeenSet, cached_pathname);
23
+
24
if force || (isempty(PTK_PathsHaveBeenSet) || ~strcmp(PTK_PathsHaveBeenSet, cached_pathname))
25
26
path_folders = {};
@@ -136,6 +139,11 @@ function PTKAddPaths(varargin)
136
139
end
137
140
138
141
142
143
+ if clear_classes
144
+ close all
145
+ clear all classes
146
+ end
147
148
149
function AddToPath(path_root, path_folders)
0 commit comments