usage of __import__ across two files
newsgroups at jhrothjr.com
Sun Dec 12 16:13:32 CET 2004
"bwobbones" <bwobbones at gmail.com> wrote in message
news:mailman.7546.1102862143.5135.python-list at python.org...
> I'm having trouble making __import__ work with the two classes attached.
> The PrintHello() method can't be seen in the BMTest2 class - what am I
> doing wrong here?
> tb = __import__('BMTest2')
Shouldn't this be tb.PrintHello() ?
> Any help will be much appreciated!
More information about the Python-list