Jesse Noller wrote: > for f in os.listdir(os.path.abspath(libdir)): > module_name = f.strip('.py') > import module_name > > Obviously, this throws: > ImportError: No module named module_name > > Is there some way to do this?
Use the __import__ builtin function. -- http://mail.python.org/mailman/listinfo/python-list