given the following file structure (example)
library_project\
|- __init__.py
|
|--- utils_a\
| |- __init__.py
| |- util_functions_a.py
|
|--- utils_b\
| |- __init__.py
| |
| |--- utils_b_1\
| | |- __init__.py
| | |- util_function_b1.py
| |
| |--- utils_b_2\
| | |- __init__.py
| | |- util_function_b2.py
and a second project
other_project\
|- __init__.py
|- run.py
in run.py
from library_project.utils_b.util_function_b2 import do_something
do_something()
How can util_function_b2.py
use functions from util_functions_a.py
?
All examples for relative imports that I found assume that the imported package is a sibling package (e.g. https://docs.python.org/2/tutorial/modules.html#intra-package-references) and not 2 levels up