from spam import eggs, spam at runtime, how?

Lonnie Princehouse fnord at
Wed Dec 10 06:57:35 CET 2003

You might also have a look at the imp module.

It may be overkill for what you're trying to do, but I've found it to
be quite useful for dynamic module manipulation.


Rene Pijlman < at> wrote in message news:<br99tv8mgguso67p2a8h8p8sctr2o7olse at>...
> How do I do:
>    from spam import eggs
> ... when 'spam' is only known at runtime?

More information about the Python-list mailing list