mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-18 20:00:23 -05:00
Fix MachineProductCfg.py not opening the Xml correctly
This commit is contained in:
parent
51be3229e9
commit
874f465c61
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user