Skip to content

Commit

Permalink
Fix ep.PythonCmd return values. (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
  • Loading branch information
zhanluxianshen authored Aug 6, 2024
1 parent e01b978 commit 9c83683
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9c83683

Please sign in to comment.