1
0
mirror of https://github.com/balkian/gists.git synced 2024-09-21 04:41:44 +00:00
gists/glob.py
J. Fernando Sánchez 5848d941e6
2016-09-27 11:19:32 +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)