Skip to content
Snippets Groups Projects
Commit 05909c14 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

Merge branch 'add_gdatpaths_in_gdat' into 'master'

add gdatpaths full call in gdat if missing subpaths

See merge request spc/tcv/tbx/gdat!44
parents 1483b134 17542c54
Branches
Tags release-v4.3.11
1 merge request!44add gdatpaths full call in gdat if missing subpaths
Pipeline #31477 passed
...@@ -139,8 +139,7 @@ end ...@@ -139,8 +139,7 @@ end
% are many folders in the path % are many folders in the path
subfunction = sprintf('gdat_%s',deblank(lower(machine_eff))); subfunction = sprintf('gdat_%s',deblank(lower(machine_eff)));
if isempty(which(subfunction)), if isempty(which(subfunction)),
gdat_path = fileparts(mfilename('fullpath')); gdatpaths; % to make create all subpaths
addpath(fullfile(gdat_path,upper(machine_eff)));
end end
% NOTE: we could also check if it matches the path to the main function. % NOTE: we could also check if it matches the path to the main function.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment