python-fhs
Python module for using the FHS and XDG basedir paths.
Loading...
Searching...
No Matches

◆ save_config()

fhs.save_config (   config,
  name = None,
  packagename = None 
)

Save a dict as a configuration file.

Write the config dict to a file in the configuration directory. The file is named <packagename>.ini, unless overridden.

Parameters
configThe data to be saved. All values are converted to str.
nameThe name of the file to be saved. ".ini" is appended to this.
packagenameOverride for the name of the package, to determine the directory to save to.

Definition at line 412 of file fhs.py.

Here is the call graph for this function:
Here is the caller graph for this function: