We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eea946 commit d879342Copy full SHA for d879342
livekit-rtc/livekit/rtc/_ffi_client.py
@@ -45,8 +45,11 @@ def get_ffi_lib():
45
Set LIVEKIT_LIB_PATH to specify a the lib path"
46
)
47
48
- with importlib.resources.path("livekit.rtc.resources", libname) as resource_path:
49
- ffi_lib = ctypes.CDLL(resource_path)
+ with importlib.resources.files("livekit.rtc.resources").joinpath(
+ libname
50
+ ) as lib_path:
51
+ # Convert the Traversable object to a string path for ctypes
52
+ ffi_lib = ctypes.CDLL(str(lib_path))
53
return ffi_lib
54
55
0 commit comments