Dynamic Import

John Roth newsgroups at jhrothjr.com
Sun Sep 26 02:16:34 CEST 2004


"OctoberSnake" <anonymous at dontemailme.com> wrote in message 
news:vOCdnQF0l8oFQsjcRVn-sA at comcast.com...
> Can I import modules dynamically?  Say for example I wanted the user to
> specify what module my script would import, how to do this?

Look for __import__() in the Library Reference, Built-in objects,
Built-in Functions.

John Roth
>
> - OctoberSnake
>
>
> 




More information about the Python-list mailing list