k5web/diy/genJson.py

11 lines
221 B
Python
Raw Normal View History

2024-06-07 16:46:40 +00:00
import os
import json
list = []
for filename in os.listdir(r'.'):
if filename[-1] == 'n':
list.append(filename)
print(json.dumps(list))
with open("version.json","w") as file:
file.write(json.dumps(list))