I just wrote a simple program in Pygame. Everything works fine when I run it in my IDE (WingIDE). However when I double-click the .py file, it briefly flashes the command line and the window it is supposed to open before quitting everything. With some slow-mo video I was able to see the issue, it wasn't able to load my .png files, saying 'FileNotFoundError: No such file or directory' . However, in the IDE it worked just fine and ran as intended. Here is the code for loading the image if it is helpful:
self.popina = pygame.transform.scale(pygame.image.load('SuburaPopina.png'), (self.width, self.height))
Is there any way I can get the .py file to run correctly? (The photo and my .py file are in the same folder) Thanks!