import os import sys # Получаем путь к корневой директории проекта root_path = os.path.abspath(os.path.dirname(__file__)) sys.path.append(root_path)