It is so during the import process, the modules in the common directory are found. It's used to mark directories as python package directories. If you remove it, then python will no longer find sub...
It is so during the import process, the modules in the common directory are found. It's used to mark directories as python package directories.
If you remove it, then python will no longer find submodules.
https://docs.python.org/3/reference/import.html#regular-packages
If we add the following to _init.py then the user doesn't have to know the exact file location of a particular class:
So in dialin.init_.py, we could add:
from hd.hemodialysis_device.py import HD
Then, a dialin script could do:
instead of
from dialin.hd.hemodialysis_device import HD
It abstracts away the file location so if we can rename files without the API user being affected.
Your comment reminded me that we weren't doing this yet and so I've added those changes to this review.