mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
[nimscript] document currentSourcePath in thisDir (#9402)
This commit is contained in:
committed by
Andreas Rumpf
parent
be77710c8c
commit
7d8e281239
@@ -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].} =
|
||||
|
||||
Reference in New Issue
Block a user