Hi,

The one thing I would try, if I understand what you're after
correctly, would be to run a exec command with the module name.


modulename = 'myModule'
exec 'import ' + modulename

Then you can access the module names as any imported module.


Cheers
Bernard


On 4/19/05, Tim Johnson <[EMAIL PROTECTED]> wrote:
> Hello Pythonmeisters:
> 
> Is it possible to dynamically compose a module name
> for import?
> 
> Pointers to documentation or other discussions would
> be sufficient at this time.
> 
> thanks
> --
> Tim Johnson <[EMAIL PROTECTED]>
>       http://www.alaska-internet-solutions.com
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to