db_ops /
__init__.py
abc.py
xyz.py
Now in xyz.py I have the following import method
from db_ops.abc import func_1
When I run xyz.py I am getting error as
ModuleNotFoundError: No module named 'db_ops'
Am I missing out anything?
P.S. I am using Windows 10
from abc import func_1
since xyz and abc are in the same directoryetl_works/
db_ops
__init__.py/
__init__.py
abc.py
xyz.py
'D:/my_py/etl_works'
import sys
sys.path.append('D:/my_py/etl_works')