Hi

How do I get a reference for the current module I'm in ?
I have a package called services with a __init__.py
that need to use getattr() to fill out a hash whith
my package attributes. But to use getattr, I need
a object that references my package (kind of this this reference in Java).
How can I do it ?

the only way I found to o this is to call get attr from another
module that imports the services package. But I suppose
it's not the only way....

Thanks for your help

Miguel

--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to