From b5ac94c7b41a400e55fb58a22dfdd6f330175473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Wed, 31 Jan 2024 15:44:14 +0100 Subject: [PATCH] fix LIVEKIT_LIB_PATH env (#156) --- livekit-rtc/livekit/rtc/_ffi_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livekit-rtc/livekit/rtc/_ffi_client.py b/livekit-rtc/livekit/rtc/_ffi_client.py index dfeb8e0f..a1711d11 100644 --- a/livekit-rtc/livekit/rtc/_ffi_client.py +++ b/livekit-rtc/livekit/rtc/_ffi_client.py @@ -36,7 +36,7 @@ def get_ffi_lib(): # allow to override the lib path using an env var libpath = os.environ.get("LIVEKIT_LIB_PATH", "").strip() if libpath: - return libpath + return ctypes.CDLL(libpath) if platform.system() == "Linux": libname = "liblivekit_ffi.so"