Dire que j'ai la structure de fichier suivant:paquets Python - import par classe, fichier non
app/
app.py
controllers/
__init__.py
project.py
plugin.py
Si app/controllers/project.py définit un importeraient comme projet de classe, app.py ceci:
from app.controllers.project import Project
Je voudrais simplement être en mesure de le faire:
from app.controllers import Project
Comment cela serait-il fait?