Hi,
let's assume I have this project tree:
project_name/
|-src/
| |- __init__.py
| |- moda.py
| '- modb.py
'- start.py
And individual files contain:
- modb.py: -
def hello(txt):
return Hello + txt + !
def plus1(num):
return num + 1
- moda.py:
Traceback (most recent call last):
File E:\tests\project_name\start.py, line 1, in module
from src import moda
File E:\tests\project_name\src\moda.py, line 1, in module
import modb
ImportError: No module named 'modb'
Hi Wiktor,
In Python 3, imports are not relative by