I have a problem where this is my project structure:
.
├── Resources/
├── src/
│   ├── __init__.py
│   ├── main.py
│   ├── utils/
│   │   ├── __init__.py
│   │   ├── util.py
│   │   └── otherUtil.py
│   └── calculations/
│       ├── __init__.py
│       └── financials.py
└── tests/
    ├── __init__.py
    └── test.py
My problem is that I can't reach the classes from the src/ folder from the tests, although the code in src/ can reach the Resources folder, through the first shown method.
I have tried:
- To append the home library path this way: - Here I used the - from src import utilafter these lines, I even tried- from .src import util.
- Then this way: - Here I used the - from src import utilafter these lines, I even tried- from .src import util.
- Than without the - sys.path.append()with no use.
I have tried every combination I know, but for no use, and I don't want to install them as individual packages. Does someone have an idea, witch will solve my problem?
Clarification edit:
I don't want to put the tests in the source folder, i want to keep them separate.


 
    