[nimscript] document currentSourcePath in thisDir (#9402)
This commit is contained in:
parent
be77710c8c
commit
7d8e281239
1 changed files with 3 additions and 1 deletions
|
|
@ -282,7 +282,9 @@ proc projectPath*(): string =
|
||||||
builtin
|
builtin
|
||||||
|
|
||||||
proc thisDir*(): string =
|
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
|
builtin
|
||||||
|
|
||||||
proc cd*(dir: string) {.raises: [OSError].} =
|
proc cd*(dir: string) {.raises: [OSError].} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue