Reverted accidentally commited changes

This commit is contained in:
Felix Krause 2016-11-30 18:05:47 +01:00
parent 5e00d714eb
commit 927de32d8d
1 changed files with 2 additions and 2 deletions

View File

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