title: VScode Python unresolved import using a module from the current folder
body: <p>I'm running vscode from some <code>project/</code> folder and getting an &quot;unresolved import&quot; error in some <code>project/impl/</code> folder. In the <code>impl/</code> folder I have 2 Python files:</p>
  <pre class="lang-py prettyprint-override"><code># lib.py
  class A():
      pass
  
  </code></pre>
  <pre class="lang-py prettyprint-override"><code># run.py
  from lib import A # vscode error here - unresolved import
  ...
  </code></pre>
  <p>When running <code>run.py</code> the Python interpreter finds the <code>lib</code> just fine but vscode shows an &quot;unresolved import&quot; error (<a href="https://imgur.com/a/E3ZqNJc" rel="nofollow noreferrer">screenshot</a>).</p>
  <p>If I change the import line to <code>from .lib import implementation</code> (note the dot), I get the opposite behaviour where vscode resolves the import fine but the Python interpreter fails.</p>
  <p>How should I import the lib or otherwise configure vscode to resolve imports from a local folder? (obviously I don't want to add the exact path of the local folder to the vscode config file since I would have to do so for every subfolder in the project)</p>