0

I have following project structure,

|
├── database
│   ├── db_adapter.py
│   ├── db_layer
│   │   ├── __init__.py
│   │   └── mysql_adapter.py
│   ├── __init__.py
│   └── scripts
│       └── schema.sql
|
└── workflow
    ├── dags
    │   ├── dss_controller.py
    │   ├── __init__.py
    |
    ├── __init__.py
    ├── plugins

I want to import db_adapter.py module inside dss_controller module, when I tried do it following error shown,

ModuleNotFoundError: No module named 'database'

How can I do the correct importing of the modules?

Hasitha
  • 558
  • 1
  • 12
  • 26

0 Answers0