def save(self, path=None):
if path==None: <EOL><INDENT>if self._autosettings_path == None: return self<EOL>gui_settings_dir = _os.path.join(_cwd, '<STR_LIT>')<EOL>if not _os.path.exists(gui_settings_dir): _os.mkdir(gui_settings_dir)            <EOL>path = _os.path.join(gui_settings_dir, self._autosettings_path)<EOL><DEDENT>d = _d.databox()<EOL>keys, dictionary = self.get_dictionary()<EOL>for k in keys: <EOL><INDENT>d.insert_header(k, dictionary[k])<EOL><DEDENT>try:<EOL><INDENT>d.save_file(path, force_overwrite=True, header_only=True)<EOL><DEDENT>except:<EOL><INDENT>print('<STR_LIT>'+path.__repr__()+'<STR_LIT>')<EOL><DEDENT>return self<EOL>
Saves all the parameters to a text file using the databox
functionality. If path=None, saves to self._autosettings_path. If
self._autosettings_path=None, does not save.