I'm having trouble doing a relative import in python. I have a directory of which i'm trying to import a module inside a subdirectory.
My layout is the following is attached as a file.https://i.stack.imgur.com/oV4fo.png
Inside the Math folder I'm trying to import Vec.py into matrix.py with use of "from .Vec import Vec2D", where Vec2D is a class. However I get an import error "ImportError: attempted relative import with no known parent package".
Using sys.path I can see that I should have access to this file however this is not the case.
Would appreciate some help, and I'm running Python 3.8 :)