I have a list of directories as such:
data_struct --> stack.py --> node.py --> simple_games --> my_game.py
"/data_struct/simple_games/my_game.py" , I am trying to import stack.py as such:
from ..stack import Stack >>, but I get this error:
ImportError: attempted relative import with no known parent package
Can someone please explain to me how to import from a file from a parent directory in python?
Thanks for your time!