Skip to content

Commit

Permalink
[ci] fix octave failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 23, 2024
1 parent cff529a commit 772a1ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jsoncache.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
%

pathname = getenv('HOME');
cachepath = {[pwd filesep '.neurojson'], [pathname filesep '.neurojson']};
cachepath = {[pwd filesep '.neurojson']};
if (strcmp(pathname, pwd) == 0)
cachepath{end + 1} = [pathname filesep '.neurojson'];
end

if (ispc)
cachepath{end + 1} = [getenv('PROGRAMDATA') filesep 'neurojson'];
elseif (ismac)
Expand All @@ -61,8 +65,6 @@
cachepath{end + 1} = '/var/cache/neurojson';
end

cachepath = unique(cachepath, 'stable');

if (nargin < 4)
domain = 'io';
end
Expand Down

0 comments on commit 772a1ef

Please sign in to comment.