doing non-prespecified imports

Jon Perez jbperez808 at wahoo.com
Fri Jul 30 20:32:14 EDT 2004


Is it possible to do:

import xxxx

within code where xxxx is specified by
a string or user input?


I need this in order to be able to load different,
arbitrary modules under application-user control.

If not using the 'import xxxx' syntax, is there
a roundabout way to do such?



More information about the Python-list mailing list