I found a couple of different answers and related questions here already but still I can't figure out what I am doing wrong.
I have a python app with layout like this:
main.py
sources/
__init__.py
utils.py
My __init__.py
contains:
from sources.utils import show
where show is a function defined in utils
I want to be able to write in main.py:
from sources import show
show()
but instead I get an error ImportError: cannot import name 'show'
Any help will be greatly appreciated
EDIT:
Seems that the problem is caused by the PyCharm IDE I'm using. The same code being run in python directly from linux console works like charm.
Sorry for bothering you guys and thank you for help.
Best Regards, Max