I have the following folder structure:
controller/
__init__.py
reactive/
__init__.py
control.py
pos/
__init__.py
devices/
__init__.py
cash/
__init__.py
server/
__init__.py
my_server.py
dispatcher/
__init__.py
dispatcherctrl.py
I need to import the module control.py
in my_server.py
, but it say ImportError: No module named controller.reactive.control
despite the fact that I have added __init__.py
in all the folders and sys.path.append('/home/other/folder/controller/reactive')
in my_server.py
.
The main file is in my_server.py
.
I don't understand why, because dispatcherctrl.py
do the same import and it work fine.