The __file__ attribute

The __file__ module attribute contains the pathname of the file from which the module was loaded, if it was loaded from a file.

The __file__ attribute is not present for C modules that are statically linked into the interpreter; for extension modules loaded dynamically from a shared library, it is the pathname of the shared library file.

 

A Django site. this page was rendered by a django application in 0.02s 2010-02-09 11:22:45.475138. hosted by webfaction.