I have a python project with the following structure:
/project
/bin
executable
/app
__init__.py
a.py
b.py
c.py
From within the /project
directory I try to run the executable, which depends on modules in the app
package:
./bin/executable
However, when I try this, python fails to find any modules defined in the app package, giving the ImportError: No module named XYZ
error.
From what I understood, the presence of __init__.py
in the app
directory should mark it as a module?
What am I doing wrong?