Please don't delete this. this is so simple but I'm banging my head making this work for last two hours.
As displayed. I want to import python file module_dir into module_sub_dir.py, but its giving erros. all init.py are empty.
from .. import module_dir
This doesn't work either as it gives erro
ImportError: attempted relative import with no known parent package
from ... import module_dirdirfolder open, then you shall import directly from the current folder. Then it is:from . import module_dir. Also, the folder containingmodule_dir.pymust contain an__init__.pyas well to be "recognized" as a python package