def config_write(key, value): '''Write the given configuration value Encode escaped config sequences. ''' if not __is_headless: # # Keeps popup box from appearing during testing I hope # import wx shutup = wx.LogNull() if value is not None: value = utf16encode(value) get_config().Write(key, value)