added utf8 support to ct_config.json

This commit is contained in:
raphael60650 2021-06-03 17:53:00 +02:00
parent 8fc58e62fb
commit 0ae749762b
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ import json
def create_lecode_config(self):
with open("./ct_config.json") as f:
with open("./ct_config.json", encoding="utf-8") as f:
ctconfig = json.load(f)
with open("./file/CTFILE.txt", "w", encoding="utf-8") as ctfile, \
open("./file/RCTFILE.txt", "w", encoding="utf-8") as rctfile:

View file

@ -4,7 +4,7 @@ import os
def patch_ct_icon(self):
with open("./ct_config.json") as f: config = json.load(f)
with open("./ct_config.json", encoding="utf8") as f: config = json.load(f)
ct_icon = Image.new("RGBA", (128, 128 * (len(config["cup"]) + 2)))
files = ["left", "right"]