mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
13 lines
233 B
Nim
13 lines
233 B
Nim
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
|
|
|