forecast_graphs: force creation of subdirectory for storing graphs
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3165 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
5616f1f2a8
commit
6e8cc2e8db
|
@ -1,6 +1,6 @@
|
|||
function forecast_graphs(var_list)
|
||||
|
||||
% Copyright (C) 2008 Dynare Team
|
||||
% Copyright (C) 2008-2009 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
@ -54,6 +54,9 @@ function forecast_graphs(var_list)
|
|||
% $$$ end
|
||||
|
||||
% create subdirectory <fname>/graphs if id doesn't exist
|
||||
if ~exist(fname, 'dir')
|
||||
mkdir('.',fname);
|
||||
end
|
||||
if ~exist([fname '/graphs'])
|
||||
mkdir(fname,'graphs');
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue