If I have the following directory structure:
Folder1/
└─ Folder2/
├─ a.py
└─ Subfolder2/
└─ b.py
Folder2/a.py contains some functions.
I want to import a function in b.py from another file(a.py) in the parent directory(Folder2).
Can you help me figure out how my child file can successfully import functions in a.py to b.py
I tried
from .Folder2 import a
I get the following error:
ImportError: attempted relative import with no known parent package