diff --git a/utils/librarypath/librarypath.go b/utils/librarypath/librarypath.go index 63ea880..dbe61fe 100644 --- a/utils/librarypath/librarypath.go +++ b/utils/librarypath/librarypath.go @@ -115,6 +115,11 @@ func getNewPathsFromDir(path string, paths []string, fullPath bool, rootPath str if !utils.Contains(paths, dir) { paths = append(paths, dir) } + // add ..\ prefixed path -> @MeroFuruya fix #146 + prefixedPath := "..\\" + dir + if !utils.Contains(paths, prefixedPath) { + paths = append(paths, prefixedPath) + } } return nil }) @@ -123,6 +128,14 @@ func getNewPathsFromDir(path string, paths []string, fullPath bool, rootPath str if !utils.Contains(paths, path) { paths = append(paths, path) } + // prevent variables from being prefixed + if !strings.HasPrefix(path, "$") { + // add ..\ prefixed path -> @MeroFuruya fix #146 + prefixedPath := "..\\" + path + if !utils.Contains(paths, prefixedPath) { + paths = append(paths, prefixedPath) + } + } } return cleanEmpty(paths) }