Where does Python look for libraries?

2006-03-27 Thread ACB
I have been trying to get the gdmodule installed and have run into an issue. When I import gd I get the following error. >>> import gd Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.3/site-packages/gd.py", line 10, in ? import _gd ImportError: /usr/lo

Saving files from post data via sys.stdin

2006-04-10 Thread ACB
I am rewriting an existing PERL script I wrote several months ago. It is a script that is used as the action for a form containing several type="file" inputs. The script is run unbuffered and writes the data from sys.stdin to a file which is stat'ed by another script called asyncornously from

Re: Saving files from post data via sys.stdin

2006-04-10 Thread ACB
> form = cgi.FieldStorage() > > for k in form.keys(): > do_something_with(form, k) > >> Is there some class that can take this input and make it easier to deal >> with? > > A dictionary. > > I need to >> save each of the ulimage values as individual images and gain access to >> the values of s

Re: Saving files from post data via sys.stdin

2006-04-11 Thread ACB
"ACB" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am rewriting an existing PERL script I wrote several months ago. It is a >script that is used as the action for a form containing several type="file" >inputs. The script is run unbuffered

Re: Saving files from post data via sys.stdin

2006-04-11 Thread ACB
> Any further help is appreciated. : ) > > I figured it out. I just used sys.stdin = file("path/to/file", "r") and I was again able to read the data from stdin. -- http://mail.python.org/mailman/listinfo/python-list