I am trying to import a .py
from a different folder in my project but got the Module not found error
. Please help.
this is my project tree.
PROJECT_name
+trnsvr
|
\--trn_db.py
+websvr
|
\--instance
|
--config.py
\--app
|
--__init__.py
in trn_db.py
I did
import websvr.instance.config as conf
but got the ModuleNotFoundError
as follow.
ModuleNotFoundError: No module named 'websvr'
how do I resolve this? thank you