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-bf33cf982152time-shift
parent
37745150b5
commit
e9a4e5e18f
|
@ -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/'])
|
||||
|
|
Loading…
Reference in New Issue