Excuse me, do you suffer from a bad hair-day? I didn't say it is platform independant. It's ok for my use on Linux and Windows. If you cannot imagine any other usecase for a __filename__ attribute, that's your problem, not mine.
-- http://mail.python.org/mailman/listinfo/python-list