fixes the regressions introduced by fix for #5076
This commit is contained in:
parent
75345ad1aa
commit
20cf28adde
4 changed files with 18 additions and 4 deletions
|
|
@ -227,7 +227,16 @@ proc setDefaultLibpath*() =
|
|||
libpath = parentNimLibPath
|
||||
|
||||
proc canonicalizePath*(path: string): string =
|
||||
result = path.expandFilename
|
||||
# on Windows, 'expandFilename' calls getFullPathName which doesn't do
|
||||
# case corrections, so we have to use this convoluted way of retrieving
|
||||
# the true filename (see tests/modules and Nimble uses 'import Uri' instead
|
||||
# of 'import uri'):
|
||||
when defined(windows):
|
||||
result = path.expandFilename
|
||||
for x in walkFiles(result):
|
||||
return x
|
||||
else:
|
||||
result = path.expandFilename
|
||||
|
||||
proc shortenDir*(dir: string): string =
|
||||
## returns the interesting part of a dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue