Import a file to namespace

Pedro Machado Santa pedro.santa at gmail.com
Thu Mar 20 13:47:56 EDT 2008


On Mar 20, 5:24 pm, Jeffrey Froman <jeff... at fro.man> wrote:
> This method should work fine. Modules are effectively singletons, so running
> this code one time anywhere in your application will cause the changes to
> appear in all references to the original module.

Yhea. I got it now. :) It already works. I wasn't putting the module
on my working dir.

(I created the module testpackageaddon.py and I did the "override" on
it, then imported it after the import testpackage on my working
script.)

Thanks.

Pedro Machado Santa



More information about the Python-list mailing list