Use constant instead of literal
This commit is contained in:
2
main.py
2
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"]
|
||||
|
||||
Reference in New Issue
Block a user