I have a python application with the following directory structure:
src | +---- main | +---- util | +---- gen_py | +---- lib <
src | +---- main | +---- util | +---- gen_py | +---- lib
from ..gen_py.lib import MyService
or
from main.gen_py.lib import MyService
Make sure you have a (at least empty) __init__.py file on each directory.
__init__.py