import from user input?
Gaetan Corneau
Gaetan_Corneau at baan.com
Fri Apr 9 10:18:19 EDT 1999
Chris,
> >>> globals()[modname] = __import__(modname)
[GC]
Exactly what I was looking for. I read about the __import__ function in the
doc, but I didn't know that I had to assign it that way.
> > Another question: is there a function to copy/move entire directory
> trees?
> There is a walk function in os.path which makes it
> an easy exercise to write such a function.
[GC]
Thanks a lot, Chris.
______________________________________________________
Gaetan Corneau
Software Developer (System integration Team)
BaaN Supply Chain Solutions
E-mail: Gaetan_Corneau at baan.com
Compuserve: Gaetan_Corneau at compuserve.com
ICQ Number: 7395494
Tel: (418) 654-1454 ext. 252
______________________________________________________
"Profanity is the one language all programmers know best"
More information about the Python-list
mailing list