I have the following directory structure:
top/
mod1.py
pkg1/
mod2.py
The goal is to import objects from mod1.py
inside the mod2.py
file, Eventually I might have to use more complicated figures, like if there had been another directory with other modules on the mod1.py
file level, but in neither of the 2 cases am I being able to import the required objects (inside mod2.py
):
from ..mod1 import *
,
from .mod1 import *
I'm using Python 3.8.0
,
Any thoughts? Thanks.