Skip to content

Commit c6f7773

Browse files
committed
1 parent c0751fb commit c6f7773

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

main

0 Bytes
Binary file not shown.

os/os.module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func system(self py.Object, args py.Tuple) (py.Object, error) {
201201
} else {
202202
return nil, py.ExceptionNewf(py.TypeError, "Expected 1 or more arguments all of type string")
203203
}
204-
command := exec.Command(cargs[0])
204+
command := exec.Command(cargs[0], cargs[1:]...)
205205
outb, err := command.Output()
206206
if err != nil {
207207
return nil, py.ExceptionNewf(py.OSError, err.Error())

0 commit comments

Comments
 (0)