SOLVED: Sorry for the useless post. It turns out my flashy new IDE was all screwed up, and wasn't saving .py files. (I'm using atom). I noticed this and took it back to the old school IDE, which worked just great when I put it into the file I wanted.
I am making a simple game with pygame, and I want it to eventually be shareable with others. However, my code manually changes the directory of the python file each time, which uses a path. I thought just putting the code in a folder in file explorer would work to change the directory, but it did not, so I used os.chdir(r'C:\Users\lukep\Downloads\Gladiator')
. This works great on my computer, but it won't on anyone else's. Is there a way to make sure my program is in the same directory as the images I need without making a specific file path? Any help is welcome. Thanks!