MCPcopy
hub / github.com/yuka-friends/Windrecorder / set_and_save_config

Method set_and_save_config

windrecorder/config.py:236–242  ·  view source on GitHub ↗
(self, attr: str, value)

Source from the content-addressed store, hash-verified

234 self.recycle_deleted_files = recycle_deleted_files
235
236 def set_and_save_config(self, attr: str, value):
237 if not hasattr(self, attr):
238 logger.warning("{} not exist in config!".format(attr))
239 return
240 # raise AttributeError("{} not exist in config!".format(attr))
241 setattr(self, attr, value)
242 self.save_config()
243
244 def save_config(self):
245 # 读取 config.json 获取旧设置

Callers 15

set_langFunction · 0.80
set_usernameFunction · 0.80
set_ocr_langFunction · 0.80
set_record_modeFunction · 0.80
record_screen.pyFile · 0.80
record_screen_via_ffmpegFunction · 0.80
crop_iframeFunction · 0.80
mainFunction · 0.80
set_config_langFunction · 0.80
renderFunction · 0.80
legal_ocr_lang_indexFunction · 0.80

Calls 1

save_configMethod · 0.95

Tested by 4