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

◆ read_runtime()

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

Open a runtime file for reading.

Parameters
nameFilename to open. Defaults to the program name.
textIf True (the default), open the file in text mode. This parameter is ignored if the file is not opened.
dirIf True, find a directory instead of a file. Defaults to False.
openedIf True (the default), return the open file. For directories, this is ignored.
packagenameOverride the packagename.
Returns
The opened file, or the file or directory name.

Definition at line 826 of file fhs.py.

Here is the caller graph for this function: