MCPcopy
hub / github.com/PDFMathTranslate/PDFMathTranslate / set

Method set

pdf2zh/config.py:120–125  ·  view source on GitHub ↗

设置配置值并保存

(cls, key, value)

Source from the content-addressed store, hash-verified

118
119 @classmethod
120 def set(cls, key, value):
121 """设置配置值并保存"""
122 instance = cls.get_instance()
123 with instance._lock:
124 instance._config_data[key] = value
125 instance._save_config()
126
127 @classmethod
128 def get_translator_by_name(cls, name):

Callers 3

translateMethod · 0.45
stop_translate_fileFunction · 0.45
on_vfont_changeFunction · 0.45

Calls 2

get_instanceMethod · 0.80
_save_configMethod · 0.80

Tested by

no test coverage detected