LIRC libraries
Linux Infrared Remote Control
|
Python access to the configuration data. More...
Files | |
file | database.py |
Read-only configuration database. |
Classes | |
class | lirc.database.ItemLookupError |
A lookup failed, either too namy or no matches found. More... | |
class | lirc.database.Config |
The configuration selected, and it's sources. More... | |
class | lirc.database.Database |
Reflects the *.yaml files in the configs/ directory. More... |
Functions | |
lirc.database._here (path) | |
Return path added to current dir for file. | |
lirc.database._load_kerneldrivers (configdir) | |
Parse the kerneldrivers.yaml file, discard unavailable drivers. |
Variables | |
str | lirc.database._YAML_MSG |
Python access to the configuration data.
The database is loaded from some YAML files:
The directory used to load these files is (first match used):
Although python cannot guarantee this, the database is designed as a read-only structure.
A simple usage examples is doc/data2table. The lirc-setup script provides a more elaborated example. Data structures are basically documented in the yaml files.
|
protected |
Return path added to current dir for file.
Definition at line 68 of file database.py.
|
protected |
Parse the kerneldrivers.yaml file, discard unavailable drivers.
Definition at line 77 of file database.py.
|
protected |
Definition at line 55 of file database.py.