On 12/15/2008 5:38 PM, Shrutarshi Basu wrote:
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?
http://docs.python.org/library/imp.html
--
Sincerely,
Chris Calloway
http://www.secoora.org
office: 332 Chapman Hall phone: (919) 599-3530
mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor