title: vscode note recognising imported libraries for python and c++ despite code working
body: <p>Recently set up c++, noticed that the <code>#include &lt;library&gt;</code> were underlined.
  error read: library.h file can not be accessed</p>
  <p>despite this the code still ran, recently start a new python project and same thing, vscode doesnt recognise my imported modules but despite this the code runs fine.</p>
  <p>Anyone know the source of this?</p>
  <p>note: when setting up c++ I initially installed minGW but ran into some errors so I switched to MSYS2 (uninstalled and removed path variables for minGW) which works but has the aforementioned error.</p>
  <p>New approach:
  changed import, and modified pylint error. Also something that I didnt mention some code does not have an error associated with it even though it doesn't seem to be any different to lines that do.</p>
  <p>Note: I can no longer access RLEACCEL var with the new import method (not a big deal as it is not necessary)</p>
  <p>Note: had to delete c++ links as I'm limited with how many links my post can have</p>
  <p><a href="https://i.stack.imgur.com/WzxAi.png" rel="nofollow noreferrer">new python import</a></p>
  <p><a href="https://i.stack.imgur.com/nAVjG.png" rel="nofollow noreferrer">disabled pylint error (I think)</a></p>
  <p><a href="https://i.stack.imgur.com/95CpI.png" rel="nofollow noreferrer">error for pygame.init()</a></p>
  <p><a href="https://i.stack.imgur.com/fyVDJ.png" rel="nofollow noreferrer">example of code that has no associated errors</a></p>
  <p><a href="https://i.stack.imgur.com/ypIzy.png" rel="nofollow noreferrer">modification of code to use new locals import</a></p>
  <p><a href="https://i.stack.imgur.com/0qBlb.png" rel="nofollow noreferrer">errors still showing up</a></p>
  <p><a href="https://i.stack.imgur.com/01X2h.png" rel="nofollow noreferrer">python imported libraries</a></p>
  <p><a href="https://i.stack.imgur.com/gJnUq.png" rel="nofollow noreferrer">logged errors for python</a></p>