I'm currently trying to change directory of my python modules called x_service.py and y_service.py from the python project directory, into adjacent folder that supposed to be the shared library location called libs/ so that those modules can be reusable if by any chance needed by other project.
this is my planned directory so that x_service and y_service can be reusable which was moved previously from python-proj/ into libs/.
.
โโโ big-project/
โโโ some service
โโโ some service
โโโ libs/
โ โโโ python/
โ โโโ x-service/
โ โ โโโ __init__.py
โ โ โโโ x_service.py
โ โโโ y-service/
โ โ โโโ __init__.py
โ โ โโโ y_service.py
โ โโโ setup.py
โโโ python-proj/
โโโ src/
โโโ config/
โ โโโ container.py
โโโ main.py
But somehow I keep getting Import error in VS Code when trying to do this, did i miss some step or knowledge? or it's basically can't be done?
from libs.python.x_service.x_service import X_Service_Class
from libs.python.y_service.y_service import Y_Service_Class