(save_path, output=False)
| 27 | return my_logger |
| 28 | |
| 29 | def load_json(save_path, output=False): |
| 30 | info_dict = {} |
| 31 | if os.path.exists(save_path): |
| 32 | with open(save_path, "r", encoding='utf-8') as f: |
| 33 | info_dict = json.load(f) |
| 34 | if output: |
| 35 | print('already have', len(info_dict)) |
| 36 | return info_dict |
| 37 | |
| 38 | |
| 39 | def load_txt(save_path): |
no outgoing calls
no test coverage detected