Re: Import a file to namespace

2008-03-20 Thread Pedro Machado Santa
t 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 -- http://mail.python.org/mailman/listinfo/python-list

Import a file to namespace

2008-03-20 Thread Pedro Machado Santa
testpackage import testpackageaddon testpackage.testClass() #my hacked class defined on testpackageaddon.py And on testpackageaddon.py: import testpackage class testClass(): #... testpackage.testClass = testClass Any tips, ideas on how to do this? Many thanks. Pedro Machado Santa -- http://mail