(lastuserpath)
| 719 | STATS_BINARY = USER + '-logfile.dat' |
| 720 | |
| 721 | def save_last_user(lastuserpath): |
| 722 | try: |
| 723 | f = open(os.path.join(get_data_dir(), lastuserpath), 'wb') |
| 724 | p = pickle.Pickler(f) |
| 725 | p.dump({'USER': USER}) |
| 726 | # also do date of last session? |
| 727 | except Exception as e: |
| 728 | error_msg("Could not save last user", e) |
| 729 | pass |
| 730 | |
| 731 | def parse_config(configpath): |
| 732 | if not (CLINICAL_MODE and configpath == 'config.ini'): |
no test coverage detected