forked from mrlan/EnglishPal
13 lines
227 B
Python
13 lines
227 B
Python
|
# utils.py
|
||
|
import os
|
||
|
import pickle_idea
|
||
|
|
||
|
def load_freq_history(path):
|
||
|
"""
|
||
|
Load frequency history from a given path.
|
||
|
"""
|
||
|
d = {}
|
||
|
if os.path.exists(path):
|
||
|
d = pickle_idea.load_record(path)
|
||
|
return d
|