aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/os/exec/lp_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/exec/lp_windows.go')
-rw-r--r--libgo/go/os/exec/lp_windows.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/os/exec/lp_windows.go b/libgo/go/os/exec/lp_windows.go
index d09e839..b7efcd6 100644
--- a/libgo/go/os/exec/lp_windows.go
+++ b/libgo/go/os/exec/lp_windows.go
@@ -42,6 +42,11 @@ func findExecutable(file string, exts []string) (string, error) {
return ``, os.ENOENT
}
+// LookPath searches for an executable binary named file
+// in the directories named by the PATH environment variable.
+// If file contains a slash, it is tried directly and the PATH is not consulted.
+// LookPath also uses PATHEXT environment variable to match
+// a suitable candidate.
func LookPath(file string) (f string, err error) {
x := os.Getenv(`PATHEXT`)
if x == `` {