Dynamically Reconfigurable Servers
By Ron Klatchko
Dr. Dobb's Journal January 1999
def dimport( modname ):
exec "import %s" % (modname,)
return sys.modules[ modname ]
Example 1: Defining a Python function that takes the name of the module you want to import.
Back to Article
Copyright © 1999, Dr. Dobb's Journal