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.00s 2012-02-04 07:59:31.474830. hosted by webfaction.