From 7d8e281239de4d8d4ba2a32671812726a8c20263 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Thu, 18 Oct 2018 03:18:40 -0700 Subject: [PATCH] [nimscript] document currentSourcePath in thisDir (#9402) --- lib/system/nimscript.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index c876d6d061..0adc7a83c6 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -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].} =