Skip to content

Commit e406cd8

Browse files
committed
re-add lib_name helper
1 parent 5991166 commit e406cd8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

livekit-rtc/livekit/rtc/_ffi_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
atexit.register(_resource_files.close)
3535

3636

37+
def _lib_name() -> str | None:
38+
if platform.system() == "Linux":
39+
return "liblivekit_ffi.so"
40+
elif platform.system() == "Darwin":
41+
return "liblivekit_ffi.dylib"
42+
elif platform.system() == "Windows":
43+
return "livekit_ffi.dll"
44+
return None
45+
46+
3747
def get_ffi_lib() -> ctypes.CDLL:
3848
# allow to override the lib path using an env var
3949
libpath = os.environ.get("LIVEKIT_LIB_PATH", "").strip()

0 commit comments

Comments
 (0)