From eb9f98e58df805986b239eabe00890805a655730 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 6 Sep 2018 08:42:49 +1000 Subject: [PATCH] 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 --- tools/ratbagc.py.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index 21fdd1de..886f5eb9 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -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