"Shrutarshi Basu" <[email protected]> wrote in message news:[email protected]...
Suppose I have a module that I want to import called ImMod1 that's
saved in a variable like so:

var = "ImMod1"

Is there some way to import ImMod1 by using var?
Thanks,
Basu

mod = __import__(var)

-Mark


_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to