imp module

Matthew Dixon Cowles matt at mondoinfo.com
Thu Sep 28 19:07:43 CEST 2000


On Thu, 28 Sep 2000 15:22:09 +0200, Magnus Heino
<magnus.heino at rivermen.se> wrote:

>I want to import a module that dont know the name of then coding.

I think that the easy way to do what you want is to read the module
into a string and then use Fredrik Lundh's technique for importing a
module from a string. It's at

http://www.deja.com/getdoc.xp?AN=621152936

Regards,
Matt



More information about the Python-list mailing list