Re: setuptools, accessing ressource files

2009-10-03 Thread PJ Eby
On Oct 2, 7:04 am, Patrick Sabin wrote: > I use setuptools to create a package. In this package I included some > images and I checked that they are in the egg-file. The problem is how > can I access the images in the package? > > I tried pkgutil.get_data, but only got an IOError, because the EGG-

AJAX Post requests

2009-02-09 Thread PJ
Hi, I have a simple web server using BaseHTTPServer, and the def do_POST (self) function works fine for regular forms that are submitted to it, but when I send an AJAX POST to it it does nothing (I've tried to just get it to print to check it's nothing else but it doesn't even do that, although it