MCPcopy Create free account
hub / github.com/Syncplay/syncplay / setConfigOption

Method setConfigOption

syncplay/ui/ConfigurationGetter.py:598–605  ·  view source on GitHub ↗
(self, option, value)

Source from the content-addressed store, hash-verified

596 return darkPalette
597
598 def setConfigOption(self, option, value):
599 path = self._getConfigurationFilePath()
600 backup = self._config.copy()
601 self._parseConfigFile(path)
602 self._config[option] = value
603 backup[option] = value
604 self._saveConfig(path)
605 self._config = backup
606
607
608class SafeConfigParserUnicode(ConfigParser):

Callers 4

setTrustedDomainsMethod · 0.80
setRoomListMethod · 0.80

Calls 3

_parseConfigFileMethod · 0.95
_saveConfigMethod · 0.95

Tested by

no test coverage detected