Commit 5b06ad8a authored by sebastien's avatar sebastien
Browse files

Fixed bug with bvar_forecast under Octave (mkdir doesn't have the implicit "-p" option)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2800 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 84cb23d1
......@@ -155,7 +155,10 @@ function bvar_forecast(nlags)
DirectoryName = [ M_.fname '/bvar_forecast' ];
if ~isdir(DirectoryName)
mkdir('.',DirectoryName);
if ~isdir(M_.fname)
mkdir(M_.fname);
end
mkdir(DirectoryName);
end
save([ DirectoryName '/simulations.mat'], 'sims_no_shock', 'sims_with_shocks');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment