Skip to content

Commit

Permalink
ENH - robustification becomes a bit of a moving target
Browse files Browse the repository at this point in the history
  • Loading branch information
schoffelen committed Dec 11, 2023
1 parent 178d28d commit 42d676c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/test/test_fiff_define_constants.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function test_fiff_define_constants_()
p = fileparts(mfilename('fullpath'));
if ~isempty(p)
% this is assumed to end with '/test';
if endsWith(p, 'test')
if numel(p)>4 && strcmp(p(end-3:end), 'test')
p = strrep(p, [filesep 'test'], '');
end
cd(p);
Expand Down

0 comments on commit 42d676c

Please sign in to comment.