I want to import something from a file which is in a folder which is in the Parent Directory.
This is what the directory structure looks like.
GAME
|--Player
| `player.py [FILE THAT NEEDS TO BE IMPORTED]
|--Story
| `introduction.py [FILE NEEDS AN IMPORT STATEMENT]
|--mainGame.py
I know that to import player.py from the Player folder. I need to do import Player.player, but I don't know how to navigate to a different folder in the parent directory.
Please help.