core/
application/
Application.py
events/
EventDispatcher.py
Запускаемый файл Application.py, как из него импортировать EventDispatcher.py?
Пробую так:
from .events import EventDispatcher;
from .events import EventDispatcher;
import sys
sys.path.append('path/to/core/dir')
from events import EventDispathcher
import sys
sys.append('path/to/events/dir')
import EventDispatcher
import os
os.chdir('path/to/events/dir')
import EventDispather
import events.EventDispatcher
project/
run.py
core/
__init__.py
application/
__init__.py
Application.py
events/
__init__.py
EventDispatcher.py