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

@ -220,7 +220,7 @@ proc readConfigFile(
return true
proc getUserConfigPath(filename: string): string =
result = joinPath(getConfigDir(), filename)
result = joinPath([getConfigDir(), "nim", filename])
proc getSystemConfigPath(conf: ConfigRef; filename: string): string =
# try standard configuration file (installation did not distribute files