fix split multiple directories GOPATH problem (windows)
This commit is contained in:
parent
a1b2b230ba
commit
064f201914
|
@ -22,7 +22,10 @@
|
||||||
|
|
||||||
(defun load-gopath-file(gopath name)
|
(defun load-gopath-file(gopath name)
|
||||||
"Search for NAME file in all paths referenced in GOPATH."
|
"Search for NAME file in all paths referenced in GOPATH."
|
||||||
(let ((paths (split-string gopath ":"))
|
(if (eq system-type 'windows-nt)
|
||||||
|
(setq sep '";")
|
||||||
|
(setq sep '":"))
|
||||||
|
(let ((paths (split-string gopath sep))
|
||||||
found)
|
found)
|
||||||
(loop for p in paths
|
(loop for p in paths
|
||||||
for file = (concat p name) when (file-exists-p file)
|
for file = (concat p name) when (file-exists-p file)
|
||||||
|
|
Loading…
Reference in a new issue