forcing import without execution?

Peoter Veliki peoter_veliki at hotmail.com
Sun Dec 2 19:28:09 EST 2001


This may sound a little strange, but the software that I use (which uses Python as the scripting language) automatically loads modules according to the name of the module, which means if I want to import a module it gets executed twice, once by the software and the second time when I import it.  However, if I don't use the import statement then the module isn't visible even though it has been executed once.  So, my question is:


can you import a module (make the namespace available) without actually executing the code? 

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20011202/04fc058a/attachment.html>


More information about the Python-list mailing list