I have a project called library and in it I have 3 folders - user, book and main. There is a user_utility.py in user. So let's say the project folder is:
/User/me/Projects/library/user/user_utility.py
/User/me/Projects/library/book/book_utility.py
/User/me/Projects/library/main/main.py
Now, in /User/me/Projects/library/main/main.py I would like to write the import statement as:
from user.user_utility import UserUtility
What is the $PYTHONPATH variable that allows me to do so? I tried
EXPORT PYTHONPATH="/User/me/Projects/library
but it does not work and it threw
No module named user.user_utility
__init__.py.