Re: [Tutor] Project tree

2014-11-10 Thread Danny Yoo
> Traceback (most recent call last): > File "E:\tests\project_name\start.py", line 1, in > from src import moda > File "E:\tests\project_name\src\moda.py", line 1, in > import modb > ImportError: No module named 'modb' Hi Wiktor, In Python 3, imports are not relative by default.

[Tutor] Project tree

2014-11-10 Thread Wiktor Matuszewski
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.