Should I even continue trying to import a module from the parent package?

22 views Asked by At

After failing for hours attempting to import a module from the parent package, I'm asking myself:

Is importing a parent package module into a subpackage module even good practice or is this attempt not recommended at all?

PS: I tried this answer to no avail. Even after pipenv install -e ., import parent in subpackage fails regardless the count of dots of prefix e.g. import .parent | ..parent

PPS: the sys hack in every subpackage smells somehow anti-DRY

0

There are 0 answers