From 9c8368342fa1b05e489423e2ced20dab3ba2a002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=9B=E9=9C=B2=E5=85=88=E7=94=9F?= Date: Tue, 6 Aug 2024 17:31:25 +0800 Subject: [PATCH] Fix ep.PythonCmd return values. (#46) Signed-off-by: zhanluxianshen --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c8338a..453beac 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,10 @@ func main() { panic(err) } - cmd := ep.PythonCmd("-c", "print('hello')") + cmd, err := ep.PythonCmd("-c", "print('hello')") + if err != nil { + panic(err) + } cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err = cmd.Run()