Skip to content
Sign upLog in

Downloaded images

Profile icon
IshaNair

When I try to download an image from my Files onto my server, the image does not get imported to my server. I think my line of code to bring in images is incorrect. Any suggestions on how to do it? If so, please include the line of code to do this. Here is the line of code I am using
chickenimage = pygame.image.load('/home/chronos/MyFiles/Downloads/HayHaythechicken.png')

FYI - This is a pygame.

You are viewing a single comment. View All
Profile icon
AphixDev

On replit, files are treated differently than they are on desktop. all you need is:

chickenimage = pygame.image.load('HayHaythechicken.png')
Profile icon
IshaNair

@nt998302
THANK YOU, THANK YOU, THANK YOU, THANK YOU!!!! I am so new to this.

Profile icon
AphixDev

@IshaNair
That's good! Keep learning and ask me if you have questions :)