It reports a filenotfound error when I enter the following code:
background = pygame.image.load('Art/base_vision.jpg')
The report was No file 'Art/window_icon.png' found in working directory 'C:\Users\xxx'
However, the directory of the script is c:/Users/xxx/Desktop/Game/Pygame test
, and all of the art used in the project is in c:/Users/xxx/Desktop/Game/Pygame test/Art
. It will simply not take files in the folder "Art
", instead it will only take what's in C:/Users/xxx
.
This is a group project I'm sending to team members, so the script needs to use files in its folder instead on C:
.