Python Forum

Full Version: Need help importing stuff that python says it cant open
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I type in the following: player = pygame.image.load("resources/image/dude.png") and it keeps on saying this : pygame.error: Couldn't open resources/image/dude.png and when i import curses it says the module doesn't exist but i go to pythons file and there curses is and with the image that i saved under pygames folder is correctly named
Please help! Thank you
Should be in your program folder. The folder that you are running the game from.
in program.
from os import getcwd
print(getcwd()) # resources folder should be here
Thanks alot i moved the game from python folder to pygame folder.IT WORKS NOW. THANKS!!!!!