Importing different versions of a module

mercado mercado mercado949 at
Tue Jul 22 19:05:47 CEST 2008

It seems that you can specify the name of the module to be imported at
runtime using the following syntax:

X = __import__('X')


Of course, I would rather specify the path to the module at runtime, not the
module name itself, but at least this is a start...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list