mirror of https://github.com/status-im/NimYAML.git
Fixed path due to staticExec changes in Nim 0.16.0
This commit is contained in:
parent
f78c2c5961
commit
608d9ef090
|
@ -103,7 +103,7 @@ proc testsFor(path: string, root: bool = true, titlePrefix: string = ""):
|
||||||
NimNode {.compileTime.} =
|
NimNode {.compileTime.} =
|
||||||
result = newStmtList()
|
result = newStmtList()
|
||||||
let
|
let
|
||||||
baseDir = staticExec("pwd")
|
baseDir = parentDir(staticExec("pwd"))
|
||||||
nimPathRaw = staticExec("which nim")
|
nimPathRaw = staticExec("which nim")
|
||||||
nimPath = if nimPathRaw[0] == '/': nimPathRaw else: baseDir / nimPathRaw
|
nimPath = if nimPathRaw[0] == '/': nimPathRaw else: baseDir / nimPathRaw
|
||||||
title = titlePrefix & slurp(baseDir / path / "title").splitLines()[0]
|
title = titlePrefix & slurp(baseDir / path / "title").splitLines()[0]
|
||||||
|
|
Loading…
Reference in New Issue