[nimscript] document currentSourcePath in thisDir (#9402)

This commit is contained in:
Timothee Cour 2018-10-18 03:18:40 -07:00 • committed by Andreas Rumpf
commit 7d8e281239

View file

@ -282,7 +282,9 @@ proc projectPath*(): string =
builtin
proc thisDir*(): string =
## Retrieves the location of the current ``nims`` script file.
## Retrieves the directory of the current ``nims`` script file. Its path is
## obtained via ``currentSourcePath`` (although, currently,
## ``currentSourcePath`` resolves symlinks, unlike ``thisDir``).
builtin
proc cd*(dir: string) {.raises: [OSError].} =