aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-17 23:13:02 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-17 23:13:02 +0200
commit1f4725de6a902bed530663b71be3ec897e8c7b91 (patch)
tree34ed23d32190673d8c0688ea16ea36e8961cee4f
parent0fe22d25beaa91aeb714934506e175e5e35b7315 (diff)
downloadquiz-1f4725de6a902bed530663b71be3ec897e8c7b91.tar.gz
quiz-1f4725de6a902bed530663b71be3ec897e8c7b91.zip
fix windows exception condition
-rwxr-xr-xquiz.py2
1 files changed, 1 insertions, 1 deletions
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