Re: [Matplotlib-users] Png stream through Stdout to the web (Answer)

2008-05-19 Thread John Hunter
On Mon, May 19, 2008 at 10:26 PM, Rodney Haynie <[EMAIL PROTECTED]> wrote: > Ok, I found the answer and just wanted to post it for the archives. Thanks Rodney -- when posting for the archives, be sure to reply to the original thread and not change the subject (eg adding "answer") since that will b

Re: [Matplotlib-users] Png stream through Stdout to the web (Answer)

2008-05-19 Thread Rodney Haynie
Ok, I found the answer and just wanted to post it for the archives. My script now begins with: #!c:/Python25/python.exe -u import os,sys import cgi import cgitb; cgitb.enable() # set HOME environment variable to a directory the httpd server can write to os.environ[ 'HOME' ] = 'c:/www/app/tmp/'