Could not open resource file, pygame error: "FileNotFoundError: No such file or directory."
Could not open resource file, pygame error: "FileNotFoundError: No such file or directory." Question: Import pygame pygame.init() BG = pygame.image.load(‘_pycache_/test_bg.jpg’) def DrawGameWin(): window.blit(BG,(0,0)) pygame.display.update() DrawGameWin() Asked By: user12144855 || Source Answers: The resource (image, font, sound, etc.) file path has to be relative to the current working directory. The working directory is possibly different from …