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:
parent
ce4383be3b
commit
d73b19e379
3 changed files with 10 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue