gyrojeff commited on
Commit
d08b0a9
1 Parent(s): 6ab42bf
Files changed (1) hide show
  1. font_dataset/font.py +1 -1
font_dataset/font.py CHANGED
@@ -65,6 +65,6 @@ def load_font_with_exclusion(
65
  font_list.sort(key=lambda x: x.path)
66
  print("font count: " + str(len(font_list)))
67
  ret = {font_list[i].path: i for i in range(len(font_list))}
68
- with open("font_list_cache.bin", "wb") as f:
69
  pickle.dump(ret, f)
70
  return ret
 
65
  font_list.sort(key=lambda x: x.path)
66
  print("font count: " + str(len(font_list)))
67
  ret = {font_list[i].path: i for i in range(len(font_list))}
68
+ with open(cache_path, "wb") as f:
69
  pickle.dump(ret, f)
70
  return ret