From 9571da85e14a4ad1f9312a06bf8baf66f5ad014b Mon Sep 17 00:00:00 2001 From: Lucas Alber Date: Fri, 30 Sep 2022 17:48:53 +0200 Subject: [PATCH] Use constant instead of literal --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index df1730c..90a6764 100644 --- a/main.py +++ b/main.py @@ -76,7 +76,7 @@ def main(): # LOAD LAST GAME - if os.path.isfile("save.json") and ui.query_yes_no("Letztes Spiel laden? (save.json)"): + if os.path.isfile(SAVE_FILE) and ui.query_yes_no(f"Letztes Spiel laden? ({SAVE_FILE})"): with open(SAVE_FILE, "r") as file: save = json.load(file) players = save["players"]