Skip to content
Snippets Groups Projects
Commit c2d72d22 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix check of path for octave

parent 537e3841
No related branches found
No related tags found
No related merge requests found
function check_matlab_path(change_path_flag)
% Copyright (C) 2015 Dynare Team
% Copyright (C) 2015-2016 Dynare Team
%
% This file is part of Dynare.
%
......@@ -35,6 +35,10 @@ end
% Get matlab path
MATLAB_PATH = path();
if isoctave
% Octave always has '.' at the top of the path, so remove '.:'
MATLAB_PATH = MATLAB_PATH(3:end);
end
% Position of DYNARE_PATH in MATLAB_PATH
idDYNARE = strfind(MATLAB_PATH,DYNARE_PATH);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment