Fix Python – Python: importing a sub‑package or sub‑module
Having already use flat packages, I was not expecting the issue I encountered with nested packages. Here is…
Directory layout
dir
|
+– test.py
|
+– package
|
+– __init__.py
|
+– subpackage
|
+– __init__.py
|
+– module.py
Content of init.py
Both package/__init__.py and p….