Apologies if that titles a little confusing.
Basically, if I have a submodule that refers any other package (without the full module reference, i.e import foo.bar rather than import project.foo.bar) and produce a package graph using pyreverse, then pyreverse doesn't show that the submodule is using foo.bar.
For example, if I have the following package structure
parent/
--__init__.py
--parent_example.py
--sub/
----__init__.py
----sub_example.py
Where the file sub_example.py contains from parent_example import foo
it produces the following diagram when ran with the command pyreverse parent -o png
However if you import using an absolute path from parent.parent_example import foo
and run the same command, it outputs what you would expect
So my question is as follows - if I am importing a module form another package, should I be using an absolute path like in example two (from the root of what is assumed to be the most top level package - in the example case, the parent package), or should I be importing like I am in the first example?
I understand that this might be seen as asking for opinions - I'd like to clarify that I'm looking for the python recommended way (most standard practice, or PEP if it exists) to handle imports
Cheers