[Solved] Import two modules with same name at top of PYTHONPATH elements

This import statement is incorrect: from utils.pkg2.mod2 import func2 If it has ever worked correctly, that was relying on resolving with the current working directory, implicit relative imports in Python 2.x, or a manually munged PYTHONPATH / sys.path. This is the type of import for which PEP8 said: Implicit relative imports should never be used … Read more