MCPcopy
hub / github.com/corpnewt/gibMacOS / save_settings

Method save_settings

gibMacOS.py:113–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 self.u.resize(width, height)
112
113 def save_settings(self):
114 # Ensure we're using the latest values
115 for setting in self.settings_to_save:
116 self.settings[setting] = getattr(self,setting,None)
117 try:
118 json.dump(self.settings,open(self.settings_path,"w"),indent=2)
119 except Exception as e:
120 raise ProgramError(
121 "Failed to save settings to:\n\n{}\n\nWith error:\n\n - {}\n".format(self.settings_path,repr(e)),
122 title="Error Saving Settings")
123
124 def save_prod_cache(self):
125 try:

Callers 3

pick_catalogMethod · 0.95
pick_macosMethod · 0.95
mainMethod · 0.95

Calls 1

ProgramErrorClass · 0.85

Tested by

no test coverage detected