[Twisted-Python] PicturePile

Philippe Lafoucrière lafou at wanadoo.fr
Sun Jul 13 03:23:43 MDT 2003


Hi

I'm trying to test to PicturePile files (from woven tutorial).
I have always the same error :


$ python picturepile.py /home/gravis/Images/
Traceback (most recent call last):
  File "picturepile.py", line 10, in ?
    class DirectoryListing(page.Page):
  File "picturepile.py", line 13, in DirectoryListing
    templateDirectory = os.path.split(os.path.abspath(__file__))[0]
NameError: name '__file__' is not defined


sounds like a bug, but I want to check with you





More information about the Twisted-Python mailing list