deleted files

Please enter the commit message for your changes. Lines starting
This commit is contained in:
scorrea
2020-04-30 14:25:53 +02:00
parent df7690316c
commit e7a2f7f30c

View File

@@ -1,17 +0,0 @@
import xmltodict
import json
from pathlib import Path
basepath= Path('DRAMSys/library/resources/configs/mcconfigs')
for path in basepath.iterdir():
if path.is_file():
filename=str(path)
if filename.endswith('.xml'):
# if os.stat(path).st_size != 0: #check if it is empty
with open(path, "r") as in_file:
xml = in_file.read()
with open(filename.replace(".xml",".json"), 'w') as out_file:
json.dump(xmltodict.parse(xml), out_file)