Re: [Tutor] __import__()

2010-09-30 Thread Jojo Mwebaze
On Thu, Sep 23, 2010 at 5:26 PM, Pete wrote: > Hiya, > > still working on my plugin architecture. I figured out how to import > modules of which I don't know the name yet at compile time, > by using __import__() instead of import. > > So that works fine when I want to have the equivalent of > > i

Re: [Tutor] __import__()

2010-09-23 Thread Emile van Sebille
On 9/23/2010 8:26 AM Pete said... Hiya, still working on my plugin architecture. I figured out how to import modules of which I don't know the name yet at compile time, by using __import__() instead of import. So that works fine when I want to have the equivalent of import spam ... by using

[Tutor] __import__()

2010-09-23 Thread Pete
Hiya, still working on my plugin architecture. I figured out how to import modules of which I don't know the name yet at compile time, by using __import__() instead of import. So that works fine when I want to have the equivalent of import spam ... by using __import__('spam') Question: wha