8 lines
No EOL
197 B
Python
8 lines
No EOL
197 B
Python
import json
|
|
import os
|
|
|
|
DATA_DIR = os.path.join(os.path.dirname(__file__), '../data')
|
|
|
|
def load_data(filename):
|
|
with open(os.path.join(DATA_DIR, filename), 'r') as f:
|
|
return json.load(f) |