I am a programming beginner. I recently had a problem with Python when running pygame that said:
FileNotFoundError: No such file or directory.
I wanted to add an image that came out. This is my code here in case someone can help.
current_path = os.path.dirname(__file__)
resource_path = os.path.join(current_path, 'resources ')
image_path = os.path.join(resource_path, 'images')
#Knight
knight = pygame.image.load(os.path.join(image_path, 'nicti.png'))