Normalize symlinks
This commit is contained in:
parent
1ccf4c8e41
commit
a867c726a9
1 changed files with 1 additions and 1 deletions
|
|
@ -403,6 +403,6 @@ proc loadPlugin*(gState: State, sourcePath: string) =
|
||||||
|
|
||||||
proc expandSymlinkAbs*(path: string): string =
|
proc expandSymlinkAbs*(path: string): string =
|
||||||
try:
|
try:
|
||||||
result = path.expandSymlink().absolutePath(path.parentDir())
|
result = path.expandSymlink().absolutePath(path.parentDir()).normalizedPath()
|
||||||
except:
|
except:
|
||||||
result = path
|
result = path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue