importing classes from a variable

Daniel Klein danielk at aracnet.com
Fri Jan 19 09:34:16 EST 2001


On Thu, 18 Jan 2001 16:02:41 -0800, "JustinHJ" <justinhj at hotmail.com> wrote:

>Could anyone offer any advice on the following problem. What I have is a
>python program that takes a file and does something to it by calling member
>functions in a class. To seperate the code that does the export from the
>main program, what I wanted to do is to be able to go from a text string
>name of the export process....

I think what you are looking for is the __builtin__.__import__()  function, but
since I am relatively new with Python, I hope I didn't screw up and give you
the wrong answer. 

Daniel Klein



More information about the Python-list mailing list