Create, save, and load the per-user config file at path().
Default filesystem encoding.
Initialized with libbe.util.encoding.get_text_file_encoding().
Get a value from the per-user config file
Parameters : | name : str
section : str
default : :
encoding : str
|
---|
Examples
>>> get_val("junk") is None
True
>>> set_val("junk", "random")
>>> get_val("junk")
u'random'
>>> set_val("junk", None)
>>> get_val("junk") is None
True
Return the path to the per-user config file.
Defaults to ~/.config/bugs-everywhere, but you can override the directory with XDG_CONFIG_HOME from the XDG Base Directory Specification. You can also override the entire path by setting the BE_CONFIG_PATH environment variable.
Set a value in the per-user config file.
Parameters : | name : str
value : str or None
section : str
encoding : str
|
---|