title: Visual Studio Code tells me it can't import python module, yet it runs the code
body: <p>I am running a script in many folders and subfolders, the structure is kinda confusing but it basically is like:</p>
  <pre><code>src/
    controllers/
       __init__.py
       a.py
       b.py
     models/
       __init__.py
       c.py
     __init__.py
     main.py
  </code></pre>
  <p>The ^^^ is supposed to be the red error underline, main.py looks something like:</p>
  <pre class="lang-py prettyprint-override"><code>from controllers import a
  ^^^^
  import models.c
  ^^^^^^
  </code></pre>
  <p>a.py:</p>
  <pre class="lang-py prettyprint-override"><code>import models.c
  ^^^^^^
  </code></pre>
  <p>I tried both, from and regular import, because maybe only one is bugged, but no, in VSC at every place I import like this, it tells me <code>unable to import [directory]</code> (it still runs from VSC and from the terminal via <code>python3 main.py</code>)</p>
  <p>Things I tried</p>
  <ul>
  <li>Restarting VSC</li>
  <li>Rebooting my PC</li>
  <li>Changing stuff in <code>__init_.py</code> (yet nothing systematic, just playing around)</li>
  </ul>
  <p>Is this a visual studio code issue, is it bad importing? Should I put stuff into <code>__init__.py</code>? Can I supress this issue or fix it somehow else?</p>