We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

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.