Workaround for Octave 3.2.0:

In Octave 3.2.0, the which() function doesn't accept filenames, but accepts function names.
This bug will be fixed in Octave 3.2.1, but this workaround solves the issue.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2807 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-07-03 10:36:11 +00:00
parent 37745150b5
commit e9a4e5e18f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function dynareroot = dynare_config(path_to_dynare)
if nargin
addpath(path_to_dynare);
end
dynareroot = strrep(which('dynare.m'),'dynare.m','');
dynareroot = strrep(which('dynare'),'dynare.m','');
addpath([dynareroot '/distributions/'])
addpath([dynareroot '/kalman/'])