python-fhs
Python module for using the FHS and XDG basedir paths.

◆ read_cache()

def fhs.read_cache (   name = None,
  text = True,
  dir = False,
  opened = True,
  packagename = None 
)

Open a cache file for reading.

The paramers should be identical to what was used to create the file with write_cache().

Parameters
nameName of the cache file.
textOpen as a text file if True (the default).
dirReturn a directory name if True, a file or filename if False (the default).
openedOpen the file if True (the default), report the name if False.
packagenameOverride the packagename.
Returns
The opened file, or the name of the file or directory.

Definition at line 1073 of file fhs.py.

Here is the caller graph for this function: