mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-05 12:18:21 +02:00
added utf8 support to ct_config.json
This commit is contained in:
parent
8fc58e62fb
commit
0ae749762b
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import json
|
||||||
|
|
||||||
|
|
||||||
def create_lecode_config(self):
|
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)
|
ctconfig = json.load(f)
|
||||||
with open("./file/CTFILE.txt", "w", encoding="utf-8") as ctfile, \
|
with open("./file/CTFILE.txt", "w", encoding="utf-8") as ctfile, \
|
||||||
open("./file/RCTFILE.txt", "w", encoding="utf-8") as rctfile:
|
open("./file/RCTFILE.txt", "w", encoding="utf-8") as rctfile:
|
||||||
|
|
|
@ -4,7 +4,7 @@ import os
|
||||||
|
|
||||||
|
|
||||||
def patch_ct_icon(self):
|
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)))
|
ct_icon = Image.new("RGBA", (128, 128 * (len(config["cup"]) + 2)))
|
||||||
|
|
||||||
files = ["left", "right"]
|
files = ["left", "right"]
|
||||||
|
|
Loading…
Reference in a new issue