Tag mixin & fixes

This commit is contained in:
paulevsGitch 2020-09-26 23:36:44 +03:00
parent 7316480289
commit 1d206295b7
116 changed files with 1669 additions and 802 deletions

View file

@ -0,0 +1,22 @@
import json
import os
data = {}
def save_json(json_file):
with open(json_file) as read_file:
data = json.load(read_file)
with open(json_file, "w") as data_file:
json.dump(data, data_file, indent=4, sort_keys=True)
path = "D:\\BetterEnd\\BetterEnd_1.16.3\\utility_res\\item"
files = []
# r=root, d=directories, f = files
for r, d, f in os.walk(path):
for file in f:
if '.json' in file:
files.append(os.path.join(r, file))
for f in files:
print(f)
save_json(f)