Fixed bug: dynare_config is now able to find a mex file even if dynare_config is called from

<DYNARE_PATH>/matlab directory and if a matlab script with same name than the mex exists in
this directory.
time-shift
Stéphane Adjemian (Charybdis) 2011-12-21 18:31:29 +01:00
parent 4869fff243
commit 3815daada3
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,9 @@ if nargin && ~isempty(path_to_dynare)
end
dynareroot = strrep(which('dynare'),'dynare.m','');
origin = pwd();
cd([dynareroot '/..'])
if ~nargin || nargin==1
verbose = 1;
end
@ -258,3 +261,5 @@ if verbose
disp([ message 'Quasi Monte-Carlo sequence (Sobol).' ])
disp(' ')
end
cd(origin);