My Dir structure is like this
├── server.py
└── Utils
├── A.py
├── __init__.py
├── B.py
Inside server.py, one import is there
from Utils.B import SomeClass
Inside B.py there's also one import
from .A import SomeClass
While running server.py, it's running fine. But while running B.py inside Utils, it's throwing error:
ModuleNotFoundError: No module named '__main__.A'; '__main__' is not a package
Then removing the dot and then running, B.py is working fine but server.py is throwing error. Can there be any solution which will run both fine?