fixes #8653
This commit is contained in:
parent
2da0341b4d
commit
3ca8ebe778
3 changed files with 6 additions and 3 deletions
|
|
@ -228,8 +228,8 @@ proc getSystemConfigPath(conf: ConfigRef; filename: string): string =
|
|||
let p = getPrefixDir(conf)
|
||||
result = joinPath([p, "config", filename])
|
||||
when defined(unix):
|
||||
if not existsFile(result): result = joinPath([p, "etc", filename])
|
||||
if not existsFile(result): result = "/etc/" & filename
|
||||
if not existsFile(result): result = joinPath([p, "etc/nim", filename])
|
||||
if not existsFile(result): result = "/etc/nim/" & filename
|
||||
|
||||
proc loadConfigs*(cfg: string; cache: IdentCache; conf: ConfigRef) =
|
||||
setDefaultLibpath(conf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue