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
You might want to try that project: https://gitlab.com/aurelien-lourot/importdir
With this module, you only need to write two lines to import all plugins from your directory and you don't need an extra __init__.py (or any other other extra file):
__init__.py
import importdir importdir.do("plugins/", globals())