Could someone provide me with a good way of importing a whole directory of modules? I have a structure like this:
/Foo bar.py spam.py eggs.py
Look at the pkgutil module from the standard library. It will let you do exactly what you want as long as you have an __init__.py file in the directory. The __init__.py file can be empty.
__init__.py