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
I've created a module for that, which doesn't rely on __init__.py (or any other auxiliary file) and makes me type only the following two lines:
__init__.py
import importdir importdir.do("Foo", globals())
Feel free to re-use or contribute: http://gitlab.com/aurelien-lourot/importdir