What\'s the best approach to execute the following using __import__ so that I may dynamically specify the module?
__import__
from module import *
It's the same as a normal from-import call, you just pass it a list containing '*' for the fromlist:
'*'
fromlist
moduleName = "foo" __import__(moduleName, globals(), locals(), ['*'])