From: gutier at intergate.bc.ca (Gerald Gutierrez)
Date: Sat, 17 Apr 1999 12:54:30 -0700
Subject: Plugins, or selecting modules to import at runtime
Message-ID: <924379180.825429211@news.intergate.bc.ca>
X-UID: 137                                                  

Hi all.

I'd like to write a program in Python in which the user can select one of
several modules to execute through a function that has the same name in all the
modules. I don't believe "import" lets me pass it a string. There is also
reload(), but the module to reload must be previously imported.

This is very similar to plugins like that used in Netscape, Photoshop and the
GIMP.

Can someone please give me a hint?

Thanks.

Please forward replies to gutier at intergate.bc.ca.





