What would be the best (read: cleanest) way to tell Python to import all modules from some folder?
I want to allow people to put their \"mods\" (modules) in a folder
Create a file named
__init__.py
inside the folder and import the folder name like this:
>>> from import * #Try to avoid importing everything when you can >>> from import module1,module2,module3 #And so on