Came across code with following structure:
/root
/app
__init__.py
mod1.py
mod2.py
/lib
__init__.py
libmod.py
mod1:
from lib.libmod import somefunc
mod2:
from app.mod1 import somefunc
While there are no runtime errors with this, my gut tells me that mod2 should import somefunc from lib. I have limited understanding of the python import system, but I`m concered about importing imports/code running twice or doing some kind of polution of namespaces.Should I be concerned at all, or is this perfectly fine Python?