parent
5ef0494677
commit
1b54be7779
13 changed files with 28 additions and 16 deletions
|
|
@ -509,6 +509,9 @@ proc getPrefixDir*(conf: ConfigRef): AbsoluteDir =
|
|||
##
|
||||
## This is overridden by some tools (namely nimsuggest) via the ``conf.prefixDir``
|
||||
## field.
|
||||
## This should resolve to root of nim sources, whether running nim from a local
|
||||
## clone or using installed nim, so that these exist: `result/doc/advopt.txt`
|
||||
## and `result/lib/system.nim`
|
||||
if not conf.prefixDir.isEmpty: result = conf.prefixDir
|
||||
else: result = AbsoluteDir splitPath(getAppDir()).head
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue