I'm having project structure like below
code
|
-- core --
| |
| test1.py
| test2.py
|---database--
| |
| sample.py
--main.py
main.py
is entry point for my application, from main.py
I can import test1 from folder core by following code
from core import test1 and it works fine
But when I try to import test2 from test1(both are on same folder core)
I'm using the following in test1
import test2
but I'm getting no module named test2 error
why is that so?
How can I import sample.py in database from test1.py module in core ?