Code: Select all
project/
setup.py
__init__.py
core/ # The original application
__init__.py
src/
__init__.py
api/
__init__.py
api.py
routes/
__init__.py
router1.py
core_plus/ # The extending application
__init__.py
src/
api/
main.py
api.py
Code: Select all
import routes.router1
Code: Select all
# project/core_plus/src/api/api.py
from core.src.api.api import routers
....
# project/core/src/api/api.py
import routes.router1 as router1
routers = [rotuer1]
....
Vorschläge auf beiden CORN/P.>