1
0
mirror of https://github.com/balkian/gists.git synced 2024-09-21 12:51:43 +00:00
gists/repos/196bf8a0547b679c6ee23532bd94dabb/glob.py

12 lines
235 B
Python
Raw Normal View History

2016-09-27 09:19:32 +00:00
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)