1
0
forked from drath/libratbag

tools: ratbagc - set the LIBRATBAG_DATA_DIR environment before context start

This way we use the data files from the source directory, not the installed
ones.

Fixes #530

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2018-09-06 08:42:49 +10:00
committed by Benjamin Tissoires
parent 6d996bf1aa
commit eb9f98e58d

View File

@@ -127,6 +127,7 @@ class Ratbagd(object):
"""
def __init__(self):
os.environ['LIBRATBAG_DATA_DIR'] = LIBRATBAG_DATA_DIR
self._ratbag = libratbag.ratbag_create_context(libratbag.interface, None)
self._devices = {}
self._devices_initialized = False