My project tree is as simple as:
test
├── __init__.py (has line: "foo = True")
├── bar.py (has line: "bar = False")
└── test.py (has line: "from . import foo; from .bar import bar")
But none of the imports in test.py
work. When I run python test.py
, it returns: attempted relative import with no known parent package
Did I miss anything here? I am using python 3.7.6