[Twisted-Python] PicturePile

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


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