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
Branches
Tags
No related merge requests found
......@@ -150,5 +150,13 @@ set_dynare_seed('default');
% Load user configuration file.
if isfield(options_, 'global_init_file')
if isfile(options_.global_init_file)
try
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment