blob: 3140c9b2ab963e0dce1345252837d00ab6c8c8d8 [file]
import subprocess as sp
a = sp.check_output(
args=['python', '-c', 'print("Spam")'],
# read errors too
stderr=sp.STDOUT
)
print(a)