So my file system looks something like this
/projects
--setup.py
--setup.cfg
--/app
--/--__init__.py
--/--app.py
--/--file_with_class.py
In my app.py I import file_with_class.py, but when I use setup to install my module with pip install . and try running it, I get this error: ModuleNotFoundError: No module named 'className'
supose file_with_class.py contains a class named className
I'm importing this class in app.py like this:
from file_with_class import className
Also, when executing app.py on its own it works perfectly, the problem comes when creating the package with setuptools and after installing my own package, trying to run it.