continued from this discussion.
hmm, many python plugin systems are done by placing stuff into a plugin subdirectory. (e.g. the flask.ext module for flask extensions)
plugins don’t run independently, so they do belong to their main project. and python packages can install submodules to some subdir. but apparently that’s a problem, so flask instead accepts plugins with names beginning with flask_, e.g. flask_admin, flask_assets, …
look how flask does it: flask/ext/__init__.py, ExtensionImporter
continued from this discussion.
hmm, many python plugin systems are done by placing stuff into a plugin subdirectory. (e.g. the
flask.extmodule for flask extensions)plugins don’t run independently, so they do belong to their main project. and python packages can install submodules to some subdir. but apparently that’s a problem, so flask instead accepts plugins with names beginning with
flask_, e.g.flask_admin,flask_assets, …look how flask does it:
flask/ext/__init__.py,ExtensionImporter