Skip to content
Snippets Groups Projects
Verified Commit 109bc588 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Check the existence of the user configuration file.

parent e2b20f3e
No related branches found
No related tags found
No related merge requests found
...@@ -150,5 +150,13 @@ set_dynare_seed('default'); ...@@ -150,5 +150,13 @@ set_dynare_seed('default');
% Load user configuration file. % Load user configuration file.
if isfield(options_, 'global_init_file') if isfield(options_, 'global_init_file')
if isfile(options_.global_init_file)
try
run(options_.global_init_file); run(options_.global_init_file);
catch
error('Cannot evaluate global initialization file (%s)', options_.global_init_file)
end
else
error('Cannot find global initialization file (%s).', options_.global_init_file)
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment