How to get self reference from within a module?

Lavoie Érick erick.lavoie at gmail.com
Tue Jan 23 16:18:57 CET 2007


I finally found what I was searching for here:

http://www.thescripts.com/forum/thread25264.html


I wanted the reference to the current module and we can obtain it this way:

sys.modules[__name__]

so its property can be used.

Thanks,

Erick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070123/3407e8c8/attachment.html>


More information about the Python-list mailing list