mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
13 lines
260 B
Nim
13 lines
260 B
Nim
import os
|
|
|
|
template getScriptDir(): string =
|
|
parentDir(instantiationInfo(-1, true).filename)
|
|
|
|
const
|
|
relRes = slurp"./tslurp.nim"
|
|
absRes = slurp(getScriptDir() / "tslurp.nim")
|
|
|
|
doAssert relRes.len > 200
|
|
doAssert absRes.len > 200
|
|
doAssert relRes == absRes
|