summary refs log tree commit diff stats
path: root/tests/vm/tslurp.nim
blob: 027db45d62077f3aa82a259ed65b21576b7576f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import os

template getScriptDir(): string =
  parentDir(instantiationInfo(-1, true).filename)

const
  relRes = slurp"../../readme.txt"
  absRes = slurp(parentDir(parentDir(getScriptDir())) / "readme.txt")

echo relRes
echo absRes