I have tried similar questions related to this topics but none of them worked for me. I have a simple Python project structure as below:
Project
|
---> src
| |
| ---> __init__.py # empty file
| ---> main.py
|
---> test
|
---> test.py
Inside test.py, I want to import everything from main.py.
I've done following methods, none of them worked.
from main import *
from .main import *
from src.main import *
from .src.main import *
from ..src.main import *
from src import *
from .src import *
How can I achieve this?