diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-05-26 01:08:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 10:08:35 +0200 |
commit | 38cb27765357e9b077b6b63fb7f9292cbd74b4e6 (patch) | |
tree | 7fa8268c2cf6c8234e1aec1d3afd8d5bd00c4317 /testament/lib | |
parent | 2a4a43b05fa3fa6ad3f85543ccfbd9ea450c9be0 (diff) | |
download | Nim-38cb27765357e9b077b6b63fb7f9292cbd74b4e6.tar.gz |
docgen: mangling using _. instead of @@ to avoid issue (#14454)
Diffstat (limited to 'testament/lib')
-rw-r--r-- | testament/lib/stdtest/specialpaths.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testament/lib/stdtest/specialpaths.nim b/testament/lib/stdtest/specialpaths.nim index 23d4c16ca..42f656d76 100644 --- a/testament/lib/stdtest/specialpaths.nim +++ b/testament/lib/stdtest/specialpaths.nim @@ -1,6 +1,15 @@ #[ todo: move findNimStdLibCompileTime, findNimStdLib here xxx: consider moving this to $nim/compiler/relpaths.nim to get relocatable paths + +## note: $lib vs $nim +note: these can resolve to 3 different paths if running via `nim c --lib:lib foo`, +eg if compiler was installed via nimble (or is in nim path), and nim is external +(ie not in `$lib/../bin/` dir) + +import "$lib/../compiler/nimpaths" # <- most robust if you want to favor --lib:lib +import "$nim/compiler/nimpaths" +import compiler/nimpaths ]# import os |