1
0
mirror of https://github.com/balkian/gists.git synced 2025-09-17 19:02:21 +00:00
Files
gists/semeval process files/glob.py
J. Fernando Sánchez 15079c6da4 Remove quote from folders
2021-10-30 15:24:35 +02:00

12 lines
235 B
Python

import glob
import json
def process_file(f):
print(json.load(f.read())
for f in glob.glob('semeval/*.json'):
""" Find every file in the semeval folder that matches **.json
"""
with open(f) as w:
process_file(w)