I have a Python package with several modules.
What I can do:
It's possible to use all modules from the package in my program by modifying __init__.py
of the package, by importing all modules in it:
#__init__.py
import module1
import module2
Then I simply import package in my program and can access classes/functions in all the modules by their full name
#My program
import package
a = package.module1.A()
QUESTION:
Is there any way to automate addition of imports to __init__.py
so I don't need to specify them manually?