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 9bbdbff commit e25524cCopy full SHA for e25524c
src/sounddevice.py
@@ -67,11 +67,9 @@
67
_libname = 'libportaudio' + _platform.architecture()[0] + '.dll'
68
else:
69
raise
70
- _lib = _ffi.dlopen(_os.path.join(
71
- _os.path.dirname(_os.path.abspath(__file__)),
72
- '_sounddevice_data',
73
- _libname
74
- ))
+ import _sounddevice_data
+ _lib = _ffi.dlopen(
+ _os.path.join(next(iter(_sounddevice_data.__path__)), _libname))
75
76
_sampleformats = {
77
'float32': _lib.paFloat32,
0 commit comments