MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / save_last_user

Function save_last_user

brainworkshop.py:721–729  ·  view source on GitHub ↗
(lastuserpath)

Source from the content-addressed store, hash-verified

719 STATS_BINARY = USER + '-logfile.dat'
720
721def 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
731def parse_config(configpath):
732 if not (CLINICAL_MODE and configpath == 'config.ini'):

Callers 1

set_userFunction · 0.85

Calls 2

get_data_dirFunction · 0.85
error_msgFunction · 0.85

Tested by

no test coverage detected