From 8583ed88c844fa6f68cabdb7f9ce8ed3ee106918 Mon Sep 17 00:00:00 2001 From: Maximilian Haye Date: Tue, 7 Jan 2025 17:49:30 +0100 Subject: [PATCH] fix: questionpy mustn't depend on questionpy_sdk --- questionpy/_ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/questionpy/_ui.py b/questionpy/_ui.py index 1cd92557..67ed237a 100644 --- a/questionpy/_ui.py +++ b/questionpy/_ui.py @@ -4,13 +4,13 @@ from typing import TYPE_CHECKING import jinja2 - from questionpy_common.environment import Package, PackageNamespaceAndShortName, get_qpy_environment -from questionpy_sdk.constants import TEMPLATES_DIR if TYPE_CHECKING: from questionpy import Attempt, Question +TEMPLATES_DIR = "templates" + class _CustomPrefixLoader(jinja2.PrefixLoader): """In contrast to the :class:`jinja2.PrefixLoader` this splits at the second occurrence of the delimiter.