Configuration file: new default location; new default value for GlobalInitFile

Under Linux and macOS, the default location for the configuration file is now
dynare/dynare.ini under the configuration directories as defined by the XDG
specification. Under Windows, the default configuration file is now
%APPDATA%\dynare\dynare.ini.

There is now a default value for the global initialization file (GlobalInitFile
option of the configuration file): the global_init.m in the Dynare
configuration directory.
new-samplers
Sébastien Villemot 2023-12-12 17:07:05 +01:00
parent cc15281b1f
commit 43b24facb9
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 20 additions and 8 deletions

View File

@ -15,11 +15,16 @@ related to the model (and hence not placed in the model file). At the
moment, it is only used when using Dynare to run parallel moment, it is only used when using Dynare to run parallel
computations. computations.
On Linux and macOS, the default location of the configuration file is On Linux and macOS, the configuration file is searched by default under
``$HOME/.dynare``, while on Windows it is ``%APPDATA%\dynare.ini`` ``dynare/dynare.ini`` in the configuration directories defined by the XDG
(typically ``c:\Users\USERNAME\AppData\dynare.ini``). You specification (typically ``$HOME/.config/dynare/dynare.ini`` for the
can specify a non standard location using the ``conffile`` option of user-specific configuration and ``/etc/xdg/dynare/dynare.ini`` for the
the ``dynare`` command (see :ref:`dyn-invoc`). system-wide configuration, the former having precedence over the latter). Under
Windows, the configuration file it searched by default in
``%APPDATA%\dynare\dynare.ini`` (typically
``c:\Users\USERNAME\AppData\Roaming\dynare\dynare.ini``). You can specify a non
standard location using the ``conffile`` option of the ``dynare`` command (see
:ref:`dyn-invoc`).
The parsing of the configuration file is case-sensitive and it should The parsing of the configuration file is case-sensitive and it should
take the following form, with each option/choice pair placed on a take the following form, with each option/choice pair placed on a
@ -76,8 +81,15 @@ processing. Currently, there is only one option available.
.. option:: GlobalInitFile = PATH_AND_FILE .. option:: GlobalInitFile = PATH_AND_FILE
The location of the global initialization file to be run at The location of a global initialization file that can be used to
the end of ``global_initialization.m``. customize some Dynare internals (typically default option values). This
is a MATLAB/Octave script.
If this option is not specified, Dynare will look for a
``global_init.m`` file in its configuration directory (typically
``$HOME/.config/dynare/global_init.m`` under Linux and macOS, and
``c:\Users\USERNAME\AppData\Roaming\dynare\global_init.m`` under
Windows).
*Example* *Example*

@ -1 +1 @@
Subproject commit 378d00fc3a50a11c3dce615ea337ad55989c938e Subproject commit cd86b1895d97d1b195849072a8d26fd372ca5d8c