title: Why my test files from a test folder can't import the source files from a source folder?
body: <p>I have a problem where this is my project structure:</p>
  <pre><code>.
  ├── Resources/
  ├── src/
  │   ├── __init__.py
  │   ├── main.py
  │   ├── utils/
  │   │   ├── __init__.py
  │   │   ├── util.py
  │   │   └── otherUtil.py
  │   └── calculations/
  │       ├── __init__.py
  │       └── financials.py
  └── tests/
      ├── __init__.py
      └── test.py
  </code></pre>
  <p>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.</p>
  <p>I have tried:</p>
  <ol>
  <li><p>To append the home library path this way:</p>
  <p><a href="https://i.stack.imgur.com/hcfTd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hcfTd.png" alt="enter image description here" /></a></p>
  <p>Here I used the <code>from src import util</code> after these lines, I even tried <code>from .src import util</code>.</p>
  </li>
  <li><p>Then this way:</p>
  <p><a href="https://i.stack.imgur.com/MV5T6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MV5T6.png" alt="enter image description here" /></a></p>
  <p>Here I used the <code>from src import util</code> after these lines, I even tried <code>from .src import util</code>.</p>
  </li>
  <li><p>Than without the <code>sys.path.append()</code> with no use.</p>
  </li>
  </ol>
  <p>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?</p>
  <p><strong>Clarification edit:</strong></p>
  <p>I don't want to put the tests in the source folder, i want to keep them separate.</p>