YL wrote:
Try something like this:
    for x in plugs:
        cmd = "import %s" % x
        exec (cmd)

For the sake of others who might have missed the rest of this thread, I'll point out that this is definitely not the way to go. No need to use exec when the builtin __import__ function is already defined for exactly this sort of use.


STeVe
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to