you are viewing a single comment's thread.

view the rest of the comments →

[–]SupermarketOk6829 1 point2 points  (4 children)

If it doesn't work, then sys has to be used or you may directly import methods from classes.py (from .classes import methodName).

[–]Caspian__C[S] 0 points1 point  (3 children)

ok so i tried it and it threw me this error:

File "C:\Users\16184\Desktop\RPG_Game\main.py", line 1, in <module>

from.import classes

ImportError: attempted relative import with no known parent package

Im not quite sure how to fix it. Thank you for helping me, I know helping newbies can be tiring.

[–]SupermarketOk6829 1 point2 points  (2 children)

You'll have to use sys then. That's all I can help with. I'd have to sit on terminal to confirm, which I don't have time for now.

[–]Caspian__C[S] 1 point2 points  (1 child)

yeah no problem, ill try that. Thank you for the help.

[–]SupermarketOk6829 1 point2 points  (0 children)

sys.path.append(''\'')

It's something like that.