title: Why does my code work in pycharm but not in visual studio code?
body: <p>My main problem is on the import of images in python.</p>
  
  <p>Here is the code that concerns it:</p>
  
  <pre><code>import pygame
  import neat
  import time
  import os
  import random
  pygame.font.init()
  
  WIN_WIDTH = 500
  WIN_HEIGHT = 800
  
  
  BIRD_IMGS = [pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird1.png"))), pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird2.png"))), pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird3.png")))]
  PIPE_IMG = pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "pipe.png")))
  BASE_IMG = pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "base.png")))
  BG_IMG = pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bg.png")))
  </code></pre>
  
  <p>the error message is : </p>
  
  <pre><code>Traceback (most recent call last):
    File "c:\Users\Dell\Documents\Code Projects\Python\Machine learning\Floppy Bord\flappy_bird_noai.py", line 12, in &lt;module&gt;
      BIRD_IMGS = [pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird1.png"))), pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird2.png"))), pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird3.png")))]
  pygame.error: Couldn't open imgs\bird1.png
  </code></pre>
  
  <p>However in pycharm all works fine. Ive already tried changing the python interpreter. Both use the anaconda base. Thank you for the time reading this! </p>