Restore confs from `disc_conf_file()`
(root, args)
| 732 | pickle.dump(args, f) |
| 733 | |
| 734 | def restore_args_from_cache(root, args): |
| 735 | """Restore confs from `disc_conf_file()`""" |
| 736 | with open(disc_conf_file(root), "rb") as f: |
| 737 | args_tmp = pickle.load(f) |
| 738 | for k, v in args_tmp.__dict__.items(): |
| 739 | setattr(args, k, v) |
| 740 | |
| 741 | |
| 742 | def parse_args(): |