From 1f4725de6a902bed530663b71be3ec897e8c7b91 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 17 Jul 2023 23:13:02 +0200 Subject: fix windows exception condition --- quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'quiz.py') diff --git a/quiz.py b/quiz.py index 0571a5d..a9248e3 100755 --- a/quiz.py +++ b/quiz.py @@ -149,7 +149,7 @@ def load_solutions(question_dirs: list[Path], def show_question(question: Path): """show the question in an external programm and return the process""" - if platform.system() != 'Windows': + if platform.system() == 'Windows': os.startfile(question) # type: ignore # pylint: disable=no-member return -- cgit v1.2.3