修复gproc.ShellRun在windows下的执行问题

This commit is contained in:
john
2018-11-01 18:18:45 +08:00
parent bf82381b9e
commit 32e32993d3

View File

@ -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: