diff --git a/g/os/gproc/gproc.go b/g/os/gproc/gproc.go index 71265099b..c44dd29cc 100644 --- a/g/os/gproc/gproc.go +++ b/g/os/gproc/gproc.go @@ -145,7 +145,7 @@ func searchBinFromEnvPath(file string) string { switch runtime.GOOS { case "windows": array = strings.Split(os.Getenv("Path"), ";") - if gfile.Ext(file) != "exe" { + if gfile.Ext(file) != ".exe" { file += ".exe" } default: