From 32e32993d34e5591bfc153b8a350d1339a9bf677 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 1 Nov 2018 18:18:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgproc.ShellRun=E5=9C=A8window?= =?UTF-8?q?s=E4=B8=8B=E7=9A=84=E6=89=A7=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/os/gproc/gproc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: