0

This question has a very similar structure to this link: How do I open an image from a different directory in python for pygame

However, the answer they used is not working for me

File structure is as follows:

Root:
    external_assets
        picture_assets
    personal_project
        sprite_library.py

I'm in sprite_library.py, looking for "../external_assets/picture_assets/picture_i_wnat.png", but when I use os.curdir, it says I'm in Root, and pygame gives me this error:

FileNotFoundError: No such file or directory.

This tells me that it either isn't going to the right parent, or there's something else going wrong

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
HElpME
  • 45
  • 5

0 Answers0