summary refs log tree commit diff stats
path: root/tests/vm/tslurp.nim
blob: fc3dc6f0aa9550230f87b47c1138bd447492b27c (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