Skip to content

Commit e0888cd

Browse files
committed
Merge branch 'fix-win_path' into dev
2 parents 8088791 + 3cd8413 commit e0888cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

initCppRoi.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ function initCppRoi()
1010
% directory with this script becomes the current directory
1111
thisDirectory = fileparts(mfilename('fullpath'));
1212

13+
pathSep = ':';
14+
if ~isunix
15+
pathSep = ';';
16+
end
1317
% we add all the subfunctions that are in the sub directories
1418
CPP_ROI_PATHS = genpath(fullfile(thisDirectory, 'src'));
15-
CPP_ROI_PATHS = cat(2, CPP_ROI_PATHS, ':', ...
19+
CPP_ROI_PATHS = cat(2, CPP_ROI_PATHS, pathSep, ...
1620
fullfile(thisDirectory, 'lib', 'marsbar-0.44'));
1721
addpath(CPP_ROI_PATHS, '-begin');
1822

0 commit comments

Comments
 (0)