Skip to content

Commit 7a2f032

Browse files
committed
use combinedoutput() to get both stderr and stdout
1 parent 082d76f commit 7a2f032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/os.module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func system(self py.Object, args py.Tuple) (py.Object, error) {
197197

198198
cargs = strings.Split(carg, " ")
199199
command := exec.Command(cargs[0], cargs[1:]...)
200-
outb, err := command.Output()
200+
outb, err := command.CombinedOutput() // - commbinedoutput to get both stderr and stdout -
201201
if err != nil {
202202
return nil, py.ExceptionNewf(py.OSError, err.Error())
203203
}

0 commit comments

Comments
 (0)