usage of __import__ across two files
John Roth
newsgroups at jhrothjr.com
Sun Dec 12 10:13:32 EST 2004
"bwobbones" <bwobbones at gmail.com> wrote in message
news:mailman.7546.1102862143.5135.python-list at python.org...
> Hi,
>
> 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?
>
[snip]
> tb = __import__('BMTest2')
> tb2.PrintHello()
Shouldn't this be tb.PrintHello() ?
[snip]
>
> Any help will be much appreciated!
>
> Bones
John Roth
More information about the Python-list
mailing list