Fixed path due to staticExec changes in Nim 0.16.0

This commit is contained in:
Felix Krause 2017-01-12 11:19:02 +01:00
parent f78c2c5961
commit 608d9ef090
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ proc testsFor(path: string, root: bool = true, titlePrefix: string = ""):
NimNode {.compileTime.} =
result = newStmtList()
let
baseDir = staticExec("pwd")
baseDir = parentDir(staticExec("pwd"))
nimPathRaw = staticExec("which nim")
nimPath = if nimPathRaw[0] == '/': nimPathRaw else: baseDir / nimPathRaw
title = titlePrefix & slurp(baseDir / path / "title").splitLines()[0]