My project has two dirs common
and core
.
root
|----common
| |-----__init__.py
| |-----util.py
|
|------core
|-----__init__.py
|------iemoji.py
In root, I execute python core/iemoji.py
, an error occurs.
Traceback (most recent call last):
File "core/iemoji.py", line 6, in module
from common import util
ImportError: No module named common
I import utils.py like this:
from common import util
__init__.py
? – Ryan Schaefer/Users/myname/project/core
. – CoXier