From 874f465c618d5f42adf5a90550d48208a6cf3328 Mon Sep 17 00:00:00 2001 From: April Date: Tue, 18 Oct 2022 17:43:54 -0700 Subject: [PATCH] Fix MachineProductCfg.py not opening the Xml correctly --- Util/MachineProductCfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/MachineProductCfg.py b/Util/MachineProductCfg.py index df9f15f..77722c7 100644 --- a/Util/MachineProductCfg.py +++ b/Util/MachineProductCfg.py @@ -3,7 +3,7 @@ import xmltodict # Open the MachineProductCfg.xml file in the root directory -with open("MachineProductCfg.xml") as MPCxml: +with open("MachineProductCfg.xml", mode = 'r', encoding= 'utf-8') as MPCxml: MPCdict = xmltodict.parse(MPCxml.read()) MPCdump = json.dumps(MPCdict) data = json.loads(MPCdump)