The return value of Popen isn't the output of the program, but instead
is the class instance. I believe that you could provide a cStringIO
instance as the 'stdout' keyword argument, and it would capture
the program's output. You could them use its getvalue() method's
return value as your HttpResp
I am using wkhtmltopdf to create PDF files, how ever I don't know how
to return them properly, docs says using a single dash instead of
output file name will write that to stdout. But I don't realize how to
return that content.
I have been trying using subprocess.Popen this way:
r = HttpResponse(
2 matches
Mail list logo