Whenever I try to run my program which is,
game_folder = os.path.dirname('C:/Users/Afolabi/Downloads')
img_folder = os.path.join(game_folder, 'img')
player_img = pygame.image.load(os.path.join(img_folder, 'p1_jump.png')).convert()
It gives this,
Traceback (most recent call last):
File "C:\Users\Afolabi\AppData\Local\Programs\Python\Python36-32\Mario v.1.py", line 8, in <module>
player_img = pygame.image.load(os.path.join(img_folder, 'p1_jump.png')).convert()
pygame.error: Couldn't open C:/Users/Afolabi\img\p1_jump.png
Please what is happening and how do I fix it. From where I got this code the person uses an OS X computer.So maybe that is it? Please help.