We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4f458 commit f8beb1cCopy full SHA for f8beb1c
utils/exec.go
@@ -19,6 +19,8 @@ func ExecutePython(script string, args ...string) (result string, err error) {
19
// 把脚本和参数组合到一个字符串数组
20
args = append([]string{script}, args...)
21
out, err := exec.Command(name, args...).Output()
22
+ // exit status 2 一般是文件没有找到
23
+ // exit status 1 一般是命令执行错误
24
if err != nil {
25
return string(out), err
26
}
0 commit comments