Look for user nim.cfg in "nim/" subdir in usual config dir locations (#8662)

Fixes https://github.com/nim-lang/Nim/issues/8661.
This commit is contained in:
Kaushal Modi 2018-08-17 04:52:10 -04:00 • committed by Andreas Rumpf
commit d73b19e379
3 changed files with 10 additions and 3 deletions

View file

@ -230,4 +230,11 @@
- On Posix systems the global system wide configuration is now put under ``/etc/nim/nim.cfg``,
it used to be ``/etc/nim.cfg``. Usually it does not exist, however.
- On Posix systems the user configuration is now looked under ``$XDG_CONFIG_HOME/nim/nim.cfg``
(if ``XDG_CONFIG_HOME`` is not defined, then under ``~/.config/nim/nim.cfg``). It used to be
``$XDG_CONFIG_DIR/nim.cfg`` (and ``~/.config/nim.cfg``).
Similarly, on Windows, the user configuration is now looked under ``%APPDATA%/nim/nim.cfg``.
This used to be ``%APPDATA%/nim.cfg``.
### Bugfixes